Errata

Java Servlet & JSP Cookbook

Errata for Java Servlet & JSP Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 100
top

There is no jspC in tomcat/bin in tomat 5.5.17

Anonymous   
Printed Page 157
Note at top of page on setProperty action

This doesn't seem to work as described.

I had to use

parameter = username
setter = setUsername
field = Username

Anonymous   
Printed Page 177
Recipe 8.2

Cannot find com.oreilly.servlet. Jason Hunter's page has broken link to it. This
invalidates all of Chapter 8, which uses that.

You should provide any downloads you reference on your web site so we are guarranteed
to get it. I have paid for this book but cannot use the chapter most important to me.

Anonymous   
Printed Page 199
bottom of page and onto the next page - in function isValidRadio()

there are two things:

var valid = false;

is superfluous - it's not used

also more importantly, the validation function fails when the radio input has a
single element as the radio.length is undefined. I have an application that
dynamically generates radio button inputs and I came up with a case where there was
only one option. The validation function would always say that no selection had been
made. I modified the function to:

function isValidRadio(radio) {
if ( radio.length ) { // if it is an array
for ( var i = 0; i < radio.length; i++ ) {
if ( radio[i].checked) {
return true;
}
}
} else {
if ( radio.checked ) {
return true;
}
}
return false;
}

Anonymous