Hello I wondered if anyone could do a code review. I inherited this application and wanted to know from an expert opinion what may be wrong with the existing code. I noticed the JQuery was very very old, so old it is no longer referenced on the JQuery site when you search for it. However, I wondered if there was a better way to structure this page.
Yes, there's a much better way to structure it: move all the Java code to a servlet, or a Java class, and only use the JSP for rendering he output. That is what JSPs should be used (which are, after all, just the "V" in "MVC").
I never got past the two first characters. "<%" means that scriptlets are in use in the page. Java scriptlets in a page has been obsolete and discredited for 13 years. now. They should never be used in a modern JSP page. Using such cranky and discredited technology in 2014 is just downright irresponsible.
Please read this article for a discussion of how to properly structure modern Java web applications.