Errata for
The J2EE Tutorial, Second Edition

by

Stephanie Bodoff, Eric Armstrong, Jennifer Ball, Debbie Bode Carson, Ian Evans, Dale Green, Kim Haase, Eric Jendrock


This page contains the errata in the first printing of the book.

If you find an error in the book, please check to see if it is already known before reporting it. If you do not find it in the list, use the tutorial feedback form to send us the relevant information, including page numbers. All errata will be fixed in the next possible printing.


ABOUT THIS TUTORIAL

CHAPTER 1: Overview

CHAPTER 2: Understanding XML

Page 50, paragraph before Note:, second line. Should be: ... it starts looking for a tag name, which throws off

Page 56, last paragraph. Delete the sentence: Remember the setDocumentLocator method?

CHAPTER 3: Getting Started with Web Applications

Page 101, numbered list. Item 1. should be 2. and the new item 1. should be:

Start the PointBase database server. For instructions, see Starting and Stopping the PointBase Database Server (page 28).

CHAPTER 4: Java API for XML Processing

CHAPTER 5: Simple API for XML

CHAPTER 6: Document Object Model

CHAPTER 7: Extensible Stylesheet Language Transformations

Page 256, definition of ceiling(N). Replace "greater" with "not less".

CHAPTER 8: Building Web Services with JAX-RPC

CHAPTER 9: SOAP with Attachments API for Java

CHAPTER 10: Java API for XML Registries

CHAPTER 11: Java Servlet Technology

Page 438, item 8.g. Remove build/ from path.

Page 439, item 13.e. Should be: Click Add Filter.

CHAPTER 12: JavaServer Pages Technology

Page 480, item 8.i. Remove build/ from path.

CHAPTER 13: JavaServer Pages Documents

CHAPTER 14: JavaServer Pages Standard Tag Library

Page 539, item 8.g. Remove build/ from path.

CHAPTER 15: Custom Tags in JSP Pages

Page 567, item 8.g. Remove build/ from path.

CHAPTER 16: Scripting in JSP Pages

CHAPTER 17: JavaServer Faces Technology

Page 644, in paragraph before the heading The User Interface Component Model:  UserNameBeanshould be replaced with UserNumberBean.

CHAPTER 18: Using JavaServer Faces Technology in JSP Pages

page 678, Table 18-1. The word "components" in the sentence describing the function of the attribute configuration tag should be singular.

page 692: section Using the outputLabel Tag, 5th line of the code snippet, fanClubLabel should be fanClub. As the text says, the for attribute of outputLabel references the ID of the input component, which is fanClub.  This line is also incorrect in the bookcashier.jsp page on the CD.

page 697: section The UISelectBoolean Component, 5th line of the code snippet, see errata for Chapter 18, page 692.

page 699: section The UISelectOne Component, second sentence: "a radio button" should be replaced with "a set of radio buttons".

page 703: section Using the selectItem Tag, third line of the code snippet, the ending curly brace is missing from the expression #{cashier.shippingOption}

page 707: second code snippet: value="#{LoginBean.Age}" should be removed from the first line.

page 708: section Using DateTime Converter: the parseLocale attribute should be the locale attribute.

page 718: section Binding a Component Instance to a Bean Property: first code snippet, fifth line: see errata for Chapter 18, page 692.

CHAPTER 19: Developing with JavaServer Faces Technology

page 739: section Writing Properties Bound to Component Instances, fifth line of code snippet: see errata for Chapter 18, page 692.

page 751: section Implementing the Validator Interface: this section should mention that a custom validator needs to also implement StateHolder if the application saves state on the client and the state of the validator must be saved across requests.  See the online version of this section for details. 

CHAPTER 20: Creating Custom UI Components

page 770:  paragraph before the section Summary of the Application Classes: the cross-reference Performing Encoding should be replaced with the cross reference Creating the Renderer Class (page 786)

page 786:  second paragraph: the two occurrances of "Web component" should be "Web application".

CHAPTER 21: Configuring JavaServer Faces Applications

page 802: section Registering Messages: the two localized messages of the ApplicationMessages bundle do not have French or Spanish translations.

page 815: section Specifying Where State is Saved: this section states that the JavaServer Faces implementation saves state on the server by default.  It actually saves state on the client by default.

page 815: section Specifying Where State is Saved: in step 1 of the numbered list, "Web component" should be "Web application".

CHAPTER 22: Internationalizing and Localizing Web Applications

CHAPTER 23: Enterprise Beans

CHAPTER 24: Getting Started with Enterprise Beans

CHAPTER 25: Session Bean Examples

CHAPTER 26: Bean-Managed Persistence Examples

CHAPTER 27: Container-Managed Persistence Examples

CHAPTER 28: A Message-Driven Bean Example

CHAPTER 29: Enterprise JavaBeans Query Language

CHAPTER 30: Transactions

CHAPTER 31: Resource Connections

CHAPTER 32: Security

CHAPTER 33: The Java Message Service API

CHAPTER 34: J2EE Examples Using the JMS API

CHAPTER 35: The Coffee Break Application

CHAPTER 36: The Duke's Bank Application

APPENDIX A: Java Encoding Schemes

APPENDIX B: XML and Related Specs: Digesting the Alphabet Soup

APPENDIX C: HTTP Overview

APPENDIX D: J2EE Connector Architecture

GLOSSARY

INDEX