Errata

Jakarta Struts Cookbook

Errata for Jakarta Struts 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 60
static on String months first line

I have tried out the month example (3.3 pp.58-61). I am not a seasoned jsp
developer so this could easily be my misunderstanding.

When using the EL
{calendar.monthSet.months[9]} (9 is an example)...it won't find the property if it's
static, as it is in the text of the book (assuming it's strictly looking for a
javabean property). It worked by making months non static.

Also I believe:
{calendar.monthSet.month[monthIndex]}
should read:
{calendar.monthSet.months[monthIndex]}

Also, how can monthIndex be a bean, if it's an integer? (p.60)

Anonymous   
Printed Page 63
public void reset(){...}

The reset should reinitialise the web link list..otherwise you get an index out of
bounds if you resubmit the form AND exception and the reset button fails to work.

Anonymous   
Printed Page 68
top of page

<html-el:text property='color[${ctr}]'/>
ctr is not defined in the loop as before.

To fix this, you'd need:
<html-el:text property='color[${loopStatus.index}]'/>

Anonymous   
Printed Page 87
towards bottom of 2nd code fragment.

items ="${languageChoices.languageIdeMap[DevPollForm.map.language]}">
should be:
items ="${languageChoices.languageIdeMap[DevPollForm.language]}">

Anonymous   
Printed Page 91
start of 2nd paragraph

The 2nd paragraph states that an Action is included. It's only included with the
source as ProcessDateAction.java, and it's incorrectly included in the ch04 folder
instead of Ch03.

Anonymous   
Printed Page 116
Example 4-5 Vertical bar chart JSP

missing the line of
<jsp:useBean id="weeklyWeather"
class="com.oreilly.strutsckbk.ch04.WeeklyWeather"/>

This example does not work for IE6 and IE7. It does work for Firefox.

Anonymous   
Printed Page 227
2nd paragraph

"When used by the Validator, a regular expression specified by the mask validator does
replace the basic required validator."
should read:
"...does not replace..."

Anonymous   
Printed Page 295
4th paragraph

It says:

Then, the rowSet property is used to access a List of DynaBeans.

But the code in Example 10-3 says:
<logic:iterate id="row" name="rowSet" propert="rows">

I looked at http://commons.apache.org/beanutils/api/org/apache/commons/beanutils/RowSetDynaClass.html and the property is called rows.

Anonymous   
Printed Page 305
Thread Local Variables Explained sidebar

"...it may appear that only on Hibernate session will be for the application..."
should read:
"...it may appear that only one Hibernate session will be instantiated for..."

Anonymous