Exercise 8.1: Creating the flow control page

First you need to create the error page using Page Designer.

To create the error page:

  1. In the Web Perspective, expand your project and drill down to the Web Content folder.
    Project Explorer
  2. Right-click the Web Content folder and click New > JSP on the pop-up menu.

    The New JSP File page opens.
    JSP page

  3. In the File Name field, type RecordNotFound.
  4. Click Finish.

    The Page Designer automatically opens.

    Your window will look like this.
    Page Designer

  5. Click on the words Place content here. and change it to something like Sorry, there is no record for that customer number.
  6. Press Enter.
  7. Type Please check the number and try again.
  8. Highlight the words try again and right-click.
  9. Select Insert Link on the pop-up menu.

    The Insert Link window opens.

  10. Click Browse next to the URL field.
  11. Click File on the pop-up menu.

    The File Selection window opens.
    File Selection

  12. Select inquiry.jsp.
  13. Click OK.
  14. Click OK in the Insert Link dialog.

    You have completed creating the flow control page.

  15. Save and close the file.

    You could spend more time customizing this page, but for the purpose of this exercise you will leave the page as is.

You have created an error page using Page Designer and now you are ready to begin Exercise 8.2: Modifying your Web interaction.