Tutorials > Program model > Use Struts tags, action forms, and validation
Update MyContactUsDisplay.jsp to display validation error messages
This section explains how to display validation error messages.
Procedure
- In the Enterprise Explorer view, expand Stores > WebContent > ConsumerDirect_name > StoreInfoArea.
- Open MyContactUsDisplay.jsp for editing.
- 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.
- Save the changes.