Struts 2 validation framework

Validation:

Validation is a process of checking something against a standard.

Struts 2 validation framework:

Struts 2 validation framework provides many generic built-in validation methods or validators to perform various validations. It enables the web container to perform validation rules before executing the actions. We can also create custom validators.

Ways of performing validations in struts 2.

1. By using built-in validators.

Built-in validators in Struts 2 validation framework.

  1. a. required validator.
  2. b. requiredstring validator.
  3. c. validator.
  4. d. date validator.
  5. e. int validator.
  6. f. double validator.
  7. g. email validator.
  8. h. regex validator.
  9. i. url validator.

2. By using custom validators.
 
Next Topic: Struts 2 validation by built-in validators with example.
Previous Topic: Struts 2 Redirect result type with example.

Related Topics:

Struts 2 validation by built-in validators with example.
Struts 2 required validator with example.
Struts 2 requiredstring validator with example.
Struts 2 stringlength validator with example.
Struts 2 int validator with example.
Struts 2 double validator with example.
Struts 2 date validator with example.
Struts 2 email validator with example.
Struts 2 regex validator with example.
Struts 2 url validator with example.