strutsapp_lessonNew

This lesson shows you how to add the display for the error messages, so that failure messages can be returned out to input.jsp.

When using ActionErrors, you need to add the ActionErrors tag to display the error message in the input.jsp. This also requires the action mapping to be modified to include an input field.

To update the action so that it will forward any errors found in bean validation out to the input.jsp page. In the DateData class, verify that the user input year is less than year 1582, then it will return an error with the "pre-gregorian" message. The "pre-gregorian" date is defined in the ApplicationResources.properties file after the errors.header and error.footer comment. DateData class file headerValidation action mappingApplicationResources.properties file.

  1. Do this.
  2. Then do this.
Describe or show the results of the steps they just followed.

Lesson checkpoint

It's a good idea to include this tutorialSummary section here as a checkpoint for the lesson, even if it is very brief.

Describe or summarize what was learned in this lesson. You learned the following:
  • About ABCs
  • What makes a good ABC
  • How to create an ABC using X tool
If you want to provide a type of assessment (for example a set of self-assess questions), it can go here.