Tutorials > Program model > Use Struts tags, action forms, and validation

< Previous | Next >


Update MyContactUsDisplay.jsp to display validation error messages

This section explains how to display validation error messages.


Procedure

  1. In the Enterprise Explorer view, expand Stores > WebContent > ConsumerDirect_name > StoreInfoArea.

  2. Open MyContactUsDisplay.jsp for editing.

  3. Copy the following line immediately above the html:form element:

    <html:errors bundle="ConsumerDirect_errors" />
    

    This element will cause any Validator errors reported to be displayed as messages above the HTML form. It will rely on the error.header and other messages you have defined in Add custom messages to the consumer direct store error message properties files for formatting.

  4. Save the changes.

< Previous | Next >


+

Search Tips   |   Advanced Search