Exercise 5.9: Ensuring the customer number field cannot be modified

Before you begin, you must complete Exercise 5.8: Enhancing the output page.

Let's make sure that the Customer Number field on your results.jsp page cannot be modified.

To ensure the customer number field cannot be modified:

  1. In the Project Explorer, expand WebContent and locate result.jsp.
    Project Explorer
  2. Right-click result.jsp.
    To open result.jsp
  3. Click Open on the pop-up menu.

    This opens the result.jsp page on the Page Designer.
    Changing attributes of Customer Number

  4. Select the Text Entry field of Customer Number in Page Designer.

    Notice the Properties view of that Text field appears.

  5. Select the Read-only check box.

    This prevents any modifications to the Customer Number.

  6. Save your changes and close result.jsp.

You have made sure that the customer number field is read only and now you are ready to begin Exercise 5.10: Visualizing the flow structure of your Web application.