Updating MyContactUsDisplay.jsp to display validation error messages

This lesson explains how to display validation error messages.


  1. In the Enterprise Explorer view , expand Stores > WebContent > Madisons > StoreInfoArea.
  2. Open MyContactUsDisplay.jsp for editing.
  3. Copy the following code immediately above the html:form element:
    <html:errors bundle="ConsumerDirect_errors" />

    This element causes any Validator errors reported to be displayed as messages above the HTML form. It relies on the error.header and other messages that you defined in Adding custom messages to the store error message properties for formatting.

  4. Save your changes.