Chapter 11

Paragraph 2: "This chapter ... provides three Model 2 sample applications." should be "This chapter ... provides four Model 2 sample applications."

Listing 11.7 Line 56:

        } else if (action.equals(action)) {

should be:

        } else if ("save-product".equals(action)) {

Listing 11.14: The ControllerServlet class in appdesign4 (Thanks to Brian E. Lavender)

The following is missing the path separator between the result folder and the file name.

  .getRealPath("/result") + sessionId + ".pdf";

should be


.getRealPath("/result/") + sessionId + ".pdf";