Note that it's not a good practice to mix Java/JDBC code and JSP. The JDBC should be in a servlet (or class called from a servlet) and then forward to a JSP. It is harder to develop, troubleshoot, maintain and reuse code in a JSP. Which wil negatively impact getting it working.
In any case, what error do you get when you try to run your code?
Also,
you should only have one try/catch. If an exception is caught, it doesn't make sense to continue.