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.
- 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.

- Locate the Message Controller heading in this Properties
table.

- Click the field beside the Message Controller and set it to
true.
- Click New.
- Set the Parameter Value to *OTHER from the
list.

- Set the Message ID to *SELECT from the list.
This opens a Message Selection window.
- Drill-down to s400a > WSSLABXX/MYMSGF > MYMSGF > CUS0001

- Click OK.
- Leave the default value of the Web Component.
- Click New.
- Enter 0 as the Parameter Value.

- Press Enter.
- Set Message ID to *NONE using the list.
- Set Web Component to result.jsp-DEFAULT using
the list.
- Click OK.
Here is what you just did:
- If the return value of the FEEDBACK parameter is 0, display the
customer details in the result.jsp Web page.
- Any other return value in the FEEDBACK parameter, use the message ID
CUS0001 in the specified message file, place the Customer number input in the
message substitution variable, and display the Web page
inquiry.jsp with the error message CUS0001.
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.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.