This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Bearing in mind that performing database access directly within a JSP is generally considered an extremely poor practice, you would this no differently than within any other Java instrument. As such, I have moved this over to the JDBC forum.