Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated Registering Validators for issue WW-2530

...

This list declares all the validators that comes with the framework. It is provided as an example of the syntax, you should not need to declare any of these validators unless you are replacing the defaults.

Wiki Markup
{snippet:id=validators-default|javadoc=false|lang=xml|url=xwork2/src/java/com/opensymphony/xwork2/validator/validators/default.xml?content-type=text%2Fplain}
{snippet:id=information|javadoc=true|url=xwork2/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java}unmigrated-inline-wiki-markupThis does not appear to be true as of
Note
titleNote
Wiki Markup
Warning
titleWarning
{snippet:id=warning|javadoc=true|url=xwork2/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java}
Struts 2.0.7 and prior

The 8, the validators.xml containing the custom validation does not need custom validators needs to contain a copy of the default validators. (See the Struts 2No DTD was used in validators.xml. See: http://struts.apache.org/2.x/docs/release-notes-208.html#ReleaseNotes2.0.8 release notes.)-MigrationfrompreviousReleasesImage Added

Turning on Validation

...

Wiki Markup
{snippet:id=exValidationRules4|javadoc=true|lang=xml|url=xwork2/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java}

Validator

...

Flavor

Wiki Markup
{snippet:id=validatorFlavours|javadoc=true|url=xwork2/src/java/com/opensymphony/xwork2/validator/Validator.java}

...