FAQ
History
PreviousHomeNext Search
Feedback
Divider

Updating Web Modules

During development, you will often need to make changes to Web applications. The process for viewing those changes is to:

  1. Recompile the servlet class.
  2. Redeploy the application in the server.
  3. Reload the URL in the client.

To try this feature, modify the servlet version of the Hello application. For example, you could change the greeting returned by GreetingServlet to be:

<h2>Hi, my name is Duke. What's yours?</h2> 

To update the file:

  1. Edit the file <INSTALL>/j2eetutorial/examples/web/hello1/WEB-INF/classes/GreetingServlet.java.
  2. Redeploy the Web module.
  3. Reload the URL in the browser.

You should see the screen in Figure 2-3 in the browser:

New Greeting

Figure 2-3 New Greeting

Divider
FAQ
History
PreviousHomeNext Search
Feedback
Divider

All of the material in The J2EE Tutorial for the Sun ONE Platform is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.