Home > Guides > Core Developers Guide > Validation > Basic Validation |
Let's configure a basic validation workflow, step by step.
Create the input form.
Create the Action class.
Create the validators. The validation.xml
format is either <ActionClassName>-validation.xml
or <ActionClassName>-<ActionAliasName>-validation.xml
.
Make sure there is a result for "input" listed in the struts.xml for when the validation fails:
If you don't have this, you'll get a: "No result defined for action xxx.xxx.tutorial.HellowWorld and result input" error