Errata

Ajax on Java

Errata for Ajax on Java

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
Other Digital Version N/A
Example 3-2. web.xml

In the <servlet-class> element of web.xml, the class name, com.AJAXbook.servlet.AjaxResponseServlet, is wrong; must be:

<servlet-class>
com.oreilly.ajax.servlet.AjaxResponseServlet
</servlet-class>

Gerardo Hernandez-Campos  Jun 01, 2009 
Printed Page 8

The callback() function described on page 8 does not match the callback() function described on page 6 for the same example. Specifically, the callback() function described on page 8 references two js functions, nonMSPopulate() and msPopulate(), that have not yet been defined, are not related to the example at-hand (displaying the decimal value of any character), and do not exist in the example code downloaded and extracted from ajaxonjavasource2-4.zip.

Admittedly a very minor discrepancy in what appears to be an excellent book!

Anonymous  Sep 04, 2008 
Printed Page 17
3rd paragraph from bottom

The instruction given here is that after running the build, point the browser to http://localhost:8080/ajax-decimal/index.html; however, according to the build file (example 3-3 on page 16), the app has been deployed to ch03-ajaxcharaterconverter, which should make the url as

http://localhost:8080/ch03-ajaxcharaterconverter/index.html.


Also, neither url above matches the url used in the javaScript show on page 6, example 2-2 (it is "ajaxcharaterconverter"), therefore, even if the inconsistencies in the examples in ch03 have been corrected, the decimal conversion will still not happen because the javaScript is not calling the rigth servlet.

This url inconsistency also exists in the downloaded examples.

Anonymous  Jun 11, 2010 
Printed Page 183
Last sentence

The sentence reads "Figure 10-1 shows what the sample application we will develop in this chapter will look like on the three major browsers."

The top three browsers have since 2004 been Internet Explorer, Firefox and Safari (http://en.wikipedia.org/wiki/Usage_share_of_web_browsers). However Internet Explorer, Firefox and Opera are shown. Opera currently has less than 1% of the market, and has never exceed this. Despite its cult status with developers, 1% cannot be considered major.

The words "the" and "major" should be deleted or the figure changed, replacing Opera with Safari.

This may appear a niggling 'religious' gripe, but readers should be made aware that it is important to test Ajax apps on Safari, both because of its usage on the Mac, and the use of Safari and other webkit-based browsers in mobile phones.

Anonymous  Sep 14, 2008