0% found this document useful (0 votes)
75 views5 pages

Murach's Java Servlets and JSP (3 Edition) : Corrections For

Uploaded by

n4me
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views5 pages

Murach's Java Servlets and JSP (3 Edition) : Corrections For

Uploaded by

n4me
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Corrections for

Murach’s Java Servlets and JSP (3nd Edition)


These are the corrections for the significant errors in each printing of this book. In
addition to the corrections listed here, you may find some trivial typos and formatting
errors. All types of corrections will be made in the next printing of the book.

How to tell which printing your book is in


Below the copyright notation on the back of the title page (page ii), you’ll find a series of
numbers like this:
10 9 8 7 6 5 4 3 2 1
The number on the right of this sequence tells which printing your book is. In this
example, it’s the first printing.
Corrections to the first printing
Expanded contents, page xiv
The title for chapter 20 should say “filters”, not “fliters”.

Chapter 1, page 18
In the fifth paragraph, the last sentence should be: As a result, if you want to use a JAR
file that’s in Tomcat’s lib directory, you don’t need to add it to the application’s WEB-
INF\lib directory.
In the sixth paragraph, the third sentence should say “four packages”, not “five
packages”.
In the seventh paragraph, the fourth sentence should be: The music.controllers package
contains the servlets for the application, while the other three packages contain regular
Java classes that define business objects and provide for data access.

Chapter 1, page 19
The last bullet should be cut from this figure. That’s because we don’t recommend
adding JAR files to Tomcat’s lib directory since that makes an application less portable
from one server to another.

Chapter 1, page 24
In the third paragraph, at the end of the second sentence, after “murach.com”, add the
following text: “and have it associated with your IP address. This allows you to use either
the domain name or the IP address to access your website.”

Chapter 2, page 34
The second URL should say “ch02email”, not “ch01email”.

Chapter 2, page 37
The last bullet should say “email”, not “emailAddress”.

Chapter 2, page 40
In the third paragraph, on the fifth line, it should say “action string”, not “URL string”.

Chapter 3, page 57
In the third bullet, after “Rename command”, add “or the Refactor→Rename command”.
This is necessary because the Rename command is available for HTML and JSP files,
and the Refactor→Rename command is available for Java files.

Chapter 3, page 70
In the fourth paragraph, the last sentence should be deleted since it doesn’t match the
screen capture in figure 3-10.
Chapter 4, page 99
In the first heading, the perfect score should be 555, not 500.

Chapter 4, page 112


In the last paragraph, on the second line, it should say “align_right”, not “right_align”.

Chapter 4, page 126


In step 8, it should say “index.html”, not “survey.html”.

Chapter 5, page 128


In the second to last paragraph, the first line should say “doPost”, not “doGet”.

Chapter 5, page 130


In the second paragraph, the third line should say “that’s stored in the murach.email
class”, not “that’s shown in the previous figure”.

Chapter 5, page 152


On the second to last line, it should say “@WebInitParam”, not “@InitParam”.

Chapter 5, page 153


In the second code example, it should say “@WebInitParam”, not “@InitParam”.

Chapter 5, page 161


All five common methods of a servlet should begin with “protected”, not “public”.

Chapter 5, page 170


In the sixth summary bullet, it should say “getParameterValues”, not “getParameters”.

Chapter 6, page 180


In the second to last paragraph, the fourth line should say “first example”, not “second
example”.

Chapter 10, page 311


In the third paragraph, the third sentence (the one that begins “Then, if you want”) should
be deleted as the info element is no longer valid.
In the fourth paragraph, it should say “tag-class”, not “tagclass”.
In the fifth paragraph, it should say “tag-class”, not “tagclass”.
Chapter 10, page 311
The code for the TLD file should be replaced with the following code:
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-jsptaglibrary_2_0.xsd">

<tlib-version>1.0</tlib-version>
<short-name>murach</short-name>
<uri>/WEB-INF/murach.tld</uri>

<tag>
<name>currentDate</name>
<tag-class>murach.tags.CurrentDateTag</tag-class>
<body-content>empty</body-content>
</tag>

<tag>
<name>currentTime</name>
<tag-class>murach.tags.CurrentTimeTag</tag-class>
<body-content>empty</body-content>
</tag>

</taglib>
This code removes two illegal info elements, adds two necessary body-content elements,
and adds the necessary dashes to the tag-class and body-content elements.

Chapter 10, page 317


The first code example should say “tag-class”, not “tagclass”, and it should say “body-
content”, not “bodycontent”.

Chapter 10, page 321


The second code example should say “tag-class”, not “tagclass”, and it should say “body-
content”, not “bodycontent”.
Chapter 10, page 325
The figure displays the wrong screen capture. It should display the following screen
capture:

Chapter 10, page 339


In the diagram, the second box should say “doInitBody”, not “doIntBody”.

Chapter 20, page 602


In the third paragraph, second line, it should say “HttpServletResponse”, not
“HttpServletRequest”.

You might also like