Exercise 4.3: Creating the update error page

Before you begin, you must complete Exercise 4.2: Linking to the update record page.

Now let's create the error page that will be displayed if there is an error during the update process.

To create the update error page:

  1. In the Project Explorer, expand your project if not already and drill down to the WebContent folder.
  2. Right-click the WebContent folder inside your project.
  3. Click New > JSP File on the pop-up menu.

    The New JSP File dialog opens.
    Creating a new JSP file

  4. In the File Name field, type UpdateError.
  5. Click Finish.

    The Page Designer opens. Your window will look like this:
    Page Designer

  6. Select the words "Place content here" and change it to An Error Occurred During Update.
  7. Highlight your new text.

    This opens the Properties pane. It appears in the bottom right of the workbench.
    Text properties

  8. Select Heading 3 from the Properties pane.
  9. Place your cursor below the heading you just created, and press the Enter key two times.
  10. Type the text Back to Customer Inquiry.
  11. Highlight the text and right-click.

    Now you will define the link.
    Inserting a link

  12. Click Insert Link on the pop-up menu.

    The Insert Link dialog opens.

  13. In the URL field, type inquiry.jsp.
    Defining the Link
  14. Click OK.

    Your UpdateError.jsp should now look like this:
    Finished UpdateError.jsp

  15. Save and close the file.

    You are now ready to use the Web Interaction Wizard to add the flow control parameter.

You have created an error page to handle records during the update record process.

Module recap

You have completed Module 4. Creating the update record output page. You have learned how to:

Now that you have created the update record output page, you are ready to begin Module 5. Creating the update complete output page.