I have links in my
Tomcat container that if someone clicks on a specific link it should go to a Record page (
Show.jsp) with all the values associated with a record from a database.
For example if someone clicks on a specific link like this:
<a href="Show.jsp?lastname='Jones'">LinkExample</a> it would take you to a
jsp with database info for someone named
Jones and show you his info:
Lastname = Jones
Firstname = Mike
City = San Diego
I would like to do this using a
Java helper class and bean so I dont have any database connection or Java code in my JSP.
I created Java class file that has Database connection that works with a Java bean. I just dont know how to get the
Show.jsp to work with the Java Bean and Java helper class file.
Here is what I have for
Show.jsp and this is the part I have been working on the longest but cant get it to work because it doesnt seem to work with the database:
My Java Helper class that compiles and connects to database:
My Java Bean that compiles here:
[ April 22, 2007: Message edited by: Mike
Jenkins ]