First, change the greeting in the file tut-install/javaeetutorial5/examples/web/hello1/web/index.jsp to
<h2>Hi, my name is Duke. What’s yours?</h2>
To update the project in NetBeans IDE:
Right-click on the project and select Build.
Right-click on the project and select Undeploy and Deploy.
To update the project using the Ant build tool:
Type ant to copy the modified JSP page into the build directory.
Type ant deploy to deploy the WAR file.
To view the modified module, reload the URL in the browser.
You should see the screen in Figure 3–6 in the browser.