We wish to thank our many readers who took the time to email us with errata. If you find errata not listed on this page, please email us at email@example.com. Remember to include the book title and edition.
Note: You can determine which printing you have by looking at the bottom of the back of the second physical page in the book (page iv, but it has no page number). Just above the ISBN number is a list of numbers. For the first printing of the book, the list appears as follows:
10 9 8 7 6 5 4 3 2 1
The last number in the list is the printing number. So the above list indicates printing 1 and the following list indicates printing 2:
10 9 8 7 6 5 4 3 2
The answer to Exercise 17.3 d and f should use method readObject rather than getObject
In the 5th Edition of Java How to Program, we inadvertently did not explain how to compile your servlets properly. The servlet classes are not part of Java 1.4.1. They are however included with Tomcat. Compile each servlet as follows:
javac -classpath TOMCAT_HOME/common/libs/servlet.jar YourServlet.java
where TOMCAT_HOMEis the Tomcat installation directory and YourServlet.java is the source code for the servlet you would like to compile.
- GuestDataBean.java the method public void addGuest(GuestBean guest). The statement object is not defined and error on creating the GuestBean instance in the method after declaring it in the same package.
To fix it, use the source code on the CD, or simply replace line 13 with the following statement
private Statement statement;