IntelliJ IDEA 12.1.0 Web Help

Some features described here are available in Ultimate edition only.

The Validator functionality within the Struts framework is intended for validating the data of forms in a Web application.

The Validator functionality uses two xml configuration files:

While you edit validation.xml, IntelliJ IDEA coordinates the code of the two files and provides you with coding assistance based on the routines defined in validator-rules.xml.

To define the validations to apply to a form
  1. Open validation.xml.
  2. To add a validation definition, add the <form-validation> tag manually.
  3. Switch to the Struts Assistant tool window, tab Validator. A new node appears in the Structure Tree.
  4. Edit the attributes of the validation definition in the Properties Table.

See Also

Reference:

Web Resources: