Introduction - If you have any usage issues, please Google them yourself
All logic on the database in jsp is not necessarily good practice, but is conducive to learning for beginners, so I do this, when the U.S. learned to some extent, they can consider the use of MVC pattern of development. In practice these codes, you must be jdbc driver on the server classpath, and then to build a database table test, there are two fields such as for test1, test2, can be used to build the following SQL
Packet : 59564367jsp.rar filelist
jsp连接数据库大全.doc