Before you begin, you must complete Exercise 5.7: Specifying error handling.
Next you enhance the look of the Web page.
To enhance the output page:
- Click the Page tab in the Properties table.

- Click the field beside the Page title and type Customer
Details.
- Click the field beside the Background Color and click the
selection button on the right side of the field.
The Color palette opens.
- Select a light yellow from the Color palette.

- Click OK on the Color palette.
- Click the field beside the Title Color and click the selection
button on the right side of the field.
- Select Blue from the Color palette.
- Click OK on the Color palette.
You notice the sample page gets updated as you choose different
properties.
If you don't like the suggested color choices, go ahead and create
your own design.
You need to modify the labels of the fields that show up on the output
JSP.
- Click the Fields tab.
- Select each field in the top left, and for each one, change the
Label value to the values described in the table below.

CUSTNO
| Customer Number
|
CUSTNA
| Customer Name
|
REPNO
| Representative Number
|
CONTAC
| Contact
|
CPHONE
| Phone Number
|
CFAX
| Fax Number
|
CADDR
| Address
|
CCITY
| City
|
CCOUNT
| Country
|
CZIP
| Zip
|
- In the left pane of the Design the Result Form page, clear the
CSTRUC.CZIPLO check box. You don't need to
display this variable.
- Click Finish on the Design the Result Form page.
The Interaction wizard creates the necessary files for your
application:
- The file custInquiry.wit is created in the
project. This file reflects the data you entered on the pages of the
Web Interaction wizard for the interaction you identified as
custInquiry. To modify these settings, double-click on the file to open
the Web Interaction wizard.
- The default package under the Java Source folder contains the .java
files generated by the wizard.
- The classes folder under Web Content/WEB-INF contains the .class
files generated from the .java files that were created by the
wizard.
You have enhanced the output page and now you are ready to begin Exercise 5.9: Ensuring the customer number field cannot be modified.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.