Start it with this document[13 pages only] if you want to develop some good web application using Java instead of reading large books.
This document prepared by myself. Clearly explains what is Jdbc. and how you can connect to a particular database through JSP and Servlets. Examples are given.
Copy the code into your your JSP directory under /usr/local/etc/httpd/htdocs/html/LOGIN. You will need to change the xxxxxx of "con=DriverManager.getConnection["Jdbc:mysql://localhost/"+db,user,"xxxxxxx"] " to reflect your MySQL password. Copy the HTML form above to the same directory above or to your public_html directory and use it connect to your database via the JSP code. Replace the test418 with your database name and the URL with your JSP URL.