In a terminal window, go to:
tut-install/examples/persistence/address-book |
Type the following command:
ant |
This will compile and assemble the address-book application.
Type the following command:
ant deploy |
This will deploy the application to GlassFish Server.
Open a web browser window and type the following URL:
http://localhost:8080/address-book/ |
As a convenience, the all task will build, package, deploy, and run the application. To do this, type the following command:
ant all |
Click Show All Contact Items, then Create New Contact. Type values in the form fields; then click Save.
If any of the values entered violate the constraints in Contact, an error message will appear in red beside the form field with the incorrect values.