Java Reference
In-Depth Information
Results of the Review Exercise
After the review exercise we have:
1.
In the ReviewExJSF project, a new package in WebContent named c12 that has the
following Facelet files:
DisplayShip.xhtml InsertShip.xhtml UpdateShip.xhtml
2.
Inside of Java Resources/src, a new folder called pagecode.c12 containing:
DisplayShip.java InsertShip.java UpdateShip.java
3.
Three new Web Pages called TNTApps, EmpApps, and ShipApps that provide links to the
Shipment and Employee functions.
4.
The JSF-based application can now insert, display, and update shipment information in
a database.
Check that the Exercise Was Done Correctly
Finally, let's check it all worked:
1.
Run TNTApps.html on the server and choose the Shipment Application option.
2.
From the ShipApps page, select the insert option and insert the following information for
a shipment:
A.
employee: 222
B.
shipment number: 1000
C.
the current date and time
D.
supplier: Fred Meyers
3.
The DisplayShip page should be displayed with the shipment 1000 information.
4.
Click shipment number 1000.
5.
The UpdateShip page should be displayed with shipment 1000's information.
6.
Change the employee number to 111 and click the Submit button.
7.
The DisplayShip page should be displayed with the shipment 1000's employee number
equal to 111.
8.
Click shipment number 1000.
9.
The UpdateShip page should be displayed with shipment 1000's information.
10.
Click the delete button.
11.
The DisplayShip page should be displayed without shipment 1000.
 
Search WWH ::




Custom Search