Easy learning with example program codes

What are the types of validators in struts 2?

Types of validators in struts 2.
1. Field Validators.
2. Non-field validators.
1. Field validators: 
These validators act or perform validations on the single field i.e. field validators are not generic they are specific to the single field. More than one validator can be applied to one field.
2. Non-field validators: 
These validators are the action level validators. Single validator can be applied to multiple fields.
Note: In this approach only one validator can be applied to a single field.

See more at: Struts 2 validation framework.

Related topics

Related topics

Please follow and like us:

Copyright © 2020 CodesJava Protection Status