Exercise 5.7: Specifying error handling

Before you begin, you must complete Exercise 5.6: Defining the output page content.

Now you can specify what should happen in case a customer number didn't match the customer numbers in your database.

  1. In the left pane of the Design the Result Form, select the FEEDBACK parameter.

    You will see the properties for this variable in the Properties table.
    Properties Table

  2. Locate the Message Controller heading in this Properties table.
    Change the message controller to true
  3. Click the field beside the Message Controller and set it to true.
  4. Click New.
  5. Set the Parameter Value to *OTHER from the list.
    Change Message ID to *Select
  6. Set the Message ID to *SELECT from the list.

    This opens a Message Selection window.

  7. Drill-down to s400a > WSSLABXX/MYMSGF > MYMSGF > CUS0001
    Select CUS0001 as the message file
  8. Click OK.
  9. Leave the default value of the Web Component.
  10. Click New.
  11. Enter 0 as the Parameter Value.
    Completed Message Control Specification
  12. Press Enter.
  13. Set Message ID to *NONE using the list.
  14. Set Web Component to result.jsp-DEFAULT using the list.
  15. Click OK.

    Here is what you just did:

    The message handling is defined.

You have specified what will happen when an incorrect customer number is entered in the customer number field and now you are ready to begin Exercise 5.8: Enhancing the output page.