The book about Java development using Eclipse.
Errata: Chapter 8 | Chapter 9 | Chapter 10 | Chapter 11 | Chapter 12

Errata - Part 2

The following corrections apply to the listed pages and paragraphs. All of the listed corrections are the way one or more sentances or captions should read. Please email any other corrections you find so that I can list them here until the next run of books is published.

Chapter 8

Page 165, Caption for Figure 8.2
The Customize Perspective dialog with submenu Show View, Games checked.

Page 165, paragraph 3:
Run MineSweeper by selecting Games, Minesweeper from the main menu then double-click its title bar to fill the window (see Figure 8.4).

Page 173, paragraph 1:
JFaceDbc is a database plug-in by Andrea Mazzolini(andreamazzolini@yahoo.it).

Chapter 9

Page 183, the path that should be in com.genuitec.eclipse.MyEclipse.link:
path=C:\\tools\\eclipse3.0\\MyEclipse

Page 188, paragraph 1:
The search.html file opens in the MyEclipse HTML Editor, which has three tabs displayed at the bottom of the editor: Source, Preview and Visual Designer. The Source tab is selected first and displays the HTML for a stubbed-out search.html page. Notice the string "This is my HTML page." located between the <body> tags. Click Preview to see the HTML displayed as a browser page. The third tab, Visual Designer, will not be discussed.

Submitted by Chad Lung (10/23/2004):
Page 190, bottom of the page:
The HTML listed as:

<input type="input" name="phoneNumber" />

should be:

<input type="text" name="phoneNumber" />

Page 191, Figure 9.5:
Figure 9.5


Page 195, last paragraph:
If all has gone well, you have results.jsp opened along side the other three files. The JSP MyEclipse editor should open the new JSP file, but if you do not see a Source and Preview tab at the bottom of the editor then the Eclipse JSP editor has opened the file instead.

Page 197, line 4 of the first code block:
Hashtable info = new Hashtable(5);

Page 201, second-to-last paragraph:
Because of the number of variations on the way EJBs can be used, this example is going to focus on a single EJB that maps to a single table and returns the same data as before: a name, street, city, state, and ZIP Code based on a customer’s current phone number.

Page 205, last paragraph:
In the top-right window, enter the SQL to create the Customer table with an id column (which will also be used as a primary key), a phone number column (which will also be used as a primary key), a phone number, name, street, city, state and zipcode column:

Page 210, paragraph 3:
You need to add Java to define the primary key, and the various supporting fields, name, street, city, state and zipcode.

Page 217, code listing 9.17 line 2:
Hashtable info = new Hashtable(5);

Page 219, paragraph 2:
To reset the MyEclipse app server launch configuration, open the Preferences dialog by selecting from the main menu Window, Preference. Select MyEclipse, Application Servers, JBoss 3, Launch from the tree view to the left and choose Debug mode in the Launch page to the right. Click OK to close Preferences.

Chapter 10

Page 229, paragraph 2:
The Web services infrastructure translates the message into a method call that the Web service understands.

Page 229, paragraph 6:
The first prompt will ask you to choose the Windows or Linux download media.

Page 233, paragraph 1:
You can import these examples by right-clicking in the Navigation view and then selecting New, Example.

Page 235, bullet 4:
private double salary = 0.0;

Page 241, bullet 1:
The WSDK is found on the IBM developerWorks site and installing it is almost as simple to accomplish as installing Eclipse.

Chapter11

Page 253, second code block:
if (instructor.trim().length() == 0) {
errors.add("instructor", new ActionMessage("instructor.error"));
}
if (courseNumber.trim().length() == 0) {
errors.add("courseNumber", new ActionMessage("courseNumber.error"));
}


Page 260, paragraph 5:
When the Project Deployments dialog opens, select CourseCatalogStruts as the project, select the Tomcat 5 server entry in the Deployments list, and click Redeploy. Close the Project Deployments dialog when the deployment has completed.

Chapter 12

Page 279, bullet 5a:
If Project Layout is not disabled, cancel out of this dialog, open the Preferences dialog, and check the Java, Build Path settings. Build Path should be set to create src and classes directories for new projects. If Build Path is not set to create src and classes, select Folders in the Source and Output Folder section and enter src as the source folder name and classes as the output folder name.

Page 292, Figure 12.18:
Figure 12.18

Page 296, paragraph 2:
From the Package Explorer, drag CourseCatalog to the right of :GUI in the diagram editor (see Figure 12.24).

Page 299, paragraph 3:
Close any editors you have open by pressing Ctrl+Shift+F4.