FAQ
History |
Previous Home Next |
Search
Feedback |
DividerUpdating Web Modules
During development, you will often need to make changes to Web applications. The process for viewing those changes is to:
- Recompile the servlet class.
- Redeploy the application in the server.
- 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:
- Edit the file
<INSTALL>/j2eetutorial/examples/web/hello1/WEB-INF/classes/GreetingServlet.java
.- Redeploy the Web module.
- Reload the URL in the browser.
You should see the screen in Figure 2-3 in the browser:
Figure 2-3 New Greeting
FAQ
History |
Previous Home Next |
Search
Feedback |
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.