Java Reference
In-Depth Information
Figure 9-8.
Currently, the address cell only displays the street information. We need to modify the cell contents to include the
city, state, and zip code.
9.
Insert a new line in the address cell (click to the right of the expression icon that retrieves
the employee's street address and press the Enter key).
10.
Change to the Source view and insert a new line after the line break tag ( <br> ).
We switched to the Source view because sometimes it is easier to enter the Java source code rather than
use the GUI.
11.
At the new line enter the following and save the source code:
<%=emp.getEmpCity()%>, <%=emp.getEmpState()%> <%=emp.getEmpZip()%>
It's important to include the three spaces after the comma and the four spaces between the employee's state and
zip code so that the information is formatted correctly.
Time to test!
12.
Run c9.EnterEmpInfoForm on the server.
13.
In the browser pane, enter the information as in Figure 9-9 .
 
Search WWH ::




Custom Search