Exercise 8.3: Testing the new error page

Before you begin, you must complete Exercise 8.2: Modifying your Web interaction.

Now that the flow control is in place, if you enter a wrong customer number,
Entering wrong customer number
you will get the error page instead of a message.
Error Page

Now follow the instructions below to run the modified project on the WebSphere Test Environment to see the result of adding flow control to your Web application.

The server should still be running from the last time you ran the Web application. Every time you make a change to the Web application, you need to restart the server to pick up the changes.

To restart the server:
Restart server instance

  1. Click the Servers tab to open the Servers view.
  2. Select the server instance. Right-click and click Restart on the pop-up menu.

    The server instance should restart.

  3. In the Web perspective Project Explorer locate the Web Content folder, and right-click inquiry.jsp.
    Run on server
  4. Click Run > Run on Server on the pop-up menu.

You have viewed the results of adding flow control to the Web application.

Module recap

You have completed Module 8. Adding an error page. You have learned how to:

Now that you have added an error page to your Web application to handle incorrect customer numbers, you can learn how to customize your input page. Continue to Module 9. Enhancing the input page using Web tools.