Exercise 3 : Additional Lab Exercise
Note : This lab is not mandatory, it is there if you would like
to take things further. There is little or no sample code although it is
suggested that you use the code from the initial lab exercise as a starting
point.
Passing data from the servlet to the JSP page
This lab exercise uses a servlet to call a database using JDBC. The results
of this database query are then returned by the servlet itself. In this
additional exercise write JSP page which will display the results of the
JDBC call. As before you'll need to pass the results of the call from the
servlet to the JSP page, you will also need to decide on a suitable data
structure to hold the results. The JSP page should then print the table
of results.
© Steve Ferris 2000