...
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} |
Note |
---|
|
Wiki Markup |
{snippet:id=information|javadoc=true|url=xwork2/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java} |
---|
Warning |
---|
| unmigrated-inline-wiki-markup |
{snippet:id=warning|javadoc=true|url=xwork2/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java} |
This does not appear to be true as of | 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.)-MigrationfrompreviousReleases Image 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} |
...