This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Despite the fact that you are (foolishly, in my opinion) performing your database code in a JSP, it's still a database question. Please be sure to post these in the JDBC forum. I have moved this there for you.