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.
Step 1 is to refactor and to move all that Java code out of the JSp and into a servlet and other Java classes where it belongs. Java code in JSP pages has been discredited for almost ten years now. Time to modernize your JSP knowledge.