Updating Web Clients

During development, you will often need to make changes to Web clients. To update a servlet you modify the source file, recompile the servlet class, update the component in the WAR, and redeploy the application. Except for the compilation step, you update a JSP page in the same way.

To try this feature, first build, package, and deploy the JSP version of the Hello application:

1.
Go to j2eetutorial/examples/src and build the example by running ant hello2.
2.
Create a J2EE application called Hello2App.
a. Select File→New→Application.
b. In the file chooser, navigate to j2eetutorial/examples/src/web/hello2.
c. In the File Name field, enter Hello2App.
d. Click New Application.
e. Click OK.
3.
Create the WAR and add ...

Get J2EE™ Tutorial, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.