JSP 2.0 p484 errata
Hi-
I racked my brains trying to get the sample code to work. Here
is what you need to do.
First, add the following line to the code
on page 484 of JSP 2.0:
<ResourceParams name ="jdbc/BooksDB">
It goes after the <Resource .../> tag and before
the first <parameter> tag.
2nd be sure to put mysql-connector-java-3.0.8-stable-bin.jar in your classpath or in $JAVA_HOME/jre/lib/ext. The authors fail to remind the readers about this one. So be careful.
I changed driverClassName value in server.xml to:
com.mysql.jdbc.Driver
Check the readme in the mysql-connector-java
download for the specifics.
Hope This Helps,
Newtonian
|