Errata

Errata

PageOriginalCorrection
1 On one computer there is a software program know as a browser On one computer there is a software program known as a browser
10 Resize the window and notice that the poem displays on four lines, unless the widow is very small. Resize the window and notice that the poem displays on four lines, unless the window is very small.
23
 out.write((java.lang.String)
            org.apache.jasper.runtime PageContextImpl.
            proprietaryEvaluate("",
            java.lang.String.class,
            PageContext)_jspx_page_context, null,
            false));
 out.write((java.lang.String)
            org.apache.jasper.runtime.PageContextImpl.
            proprietaryEvaluate("",
            java.lang.String.class,
            (PageContext)_jspx_page_context, null,
            false));
61 1. _jspService This method was described in Chapter 1, so this review topic belongs in Chapter 1.
62 1. What is contained in the request object that is sent to the _jspService method?
2. What is contained in the response object that is sent to the _jspService method?
The answers to these questions are in Chapter 1, so the questions belong in Chapter 1.
75 The only differences between the controller for this example and the Data Bean controller of Listing 3.1 are the name of the bean, the URL for the controller and the name of package. The only differences between the controller for this example and the Data Bean controller of Listing 3.1 are the name of the bean, the URL for the controller and the name of the package.
112 updateSession("helper", SessionData.READ) addHelperToSession("helper", SessionData.READ)
120 The New Java section is missing the init method. Add init to the New Java section.
120 14. exceuteButtonMethod 14. executeButtonMethod
120 copyFromSession is missing from the New Java list. Add copyFromSession to the New Java list.
120 The tags init-param, param-name and param-value belong in Chapter 5. Add init-param, param-name and param-value to Tags in Chapter 5.
125 \d{3}(-?)\d{2}\1\d{4} does not agree with earlier version of pattern. Change to \d{3}([-]?)\d{2}\1\d{4}
130 The method put is used to associate one object, know as a key, with another object, known as a value. The method put is used to associate one object, known as a key, with another object, known as a value.
132 An individual message in a map can be retrieved by placing the name of the property in quotes inside square brackets as ${data.error["hobby"]}. Additionally, the dot notation can be used: ${data.error.hobby}. An individual message in a map can be retrieved by placing the name of the property in quotes inside square brackets as ${helper.errors["hobby"]}. Additionally, the dot notation can be used: ${helper.errors.hobby}.
133 When isValid is not called in the doGet method, then all of these references to the error messages will return null, which will be displayed as an empty string by EL. When isValid is not called in the doGet method, then all of these references to the error messages will return null, which will be displayed as an empty string by EL.
141 http://bytesizebook.com/hibernate.zip
http://bytesizebook.com/non-hibernate.zip
http://bytesizebook.com/jar/hibernate.zip
http://bytesizebook.com/jar/non-hibernate.zip
143 In Figure 5.8, the createTable method is missing. In Figure 5.8, add the static method named createTable.
147 public void closeFactory(SessionFactory factory) { public void closeFactory() {
151 Sessions are obtained from the session factory that was created in initSessionFactroy. Sessions are obtained from the session factory that was created in initSessionFactory.
163 There are two sections for Java: Java and New Java Combine them into one section named Java.
205 import javax.persistence.CollectionOfElements; import org.hibernate.annotations.CollectionOfElements;
216 Missing the NotNull annotation from the accessor for the account number.
@NotNull
@Pattern ...
public String getAccountNumber ...
217 The error map must be cleared if the account number is valid; otherwise, the edit page will display errors the first time it is displayed.
getErrors().clear();
address = "Edit.jsp";
234 Figure 7.7 show the default implementation of three text fields from the CatalogItem class in the MySQL database server. Figure 7.7 shows the default implementation of three text fields from the CatalogItem class in the MySQL database server.
250 The New Java sections is missing response.addCookie and request.getCookies. Add response.addCookie and request.getCookies to the New Java section.
255 Many packages have methods that should be called in order to release all the reources that are being used by the package. Many packages have methods that should be called in order to release all the resources that are being used by the package.

Contact the author