This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
In general, if you are using beans in your JSP, then the beans should do all the behind-the-scenes stuff. And this includes database access. So the beans (or whatever creates them) should be coded up to use JDBC, and the JSP just asks the beans for values.