Example & Tutorial understanding programming in easy ways.

What is Struts Validator Framework?

Struts Validator Framework enables us to validate the data of both client side and server side.
 There are two types of validation supported in the struts framework:-
  1. Clint side validation (Using java script support and enabling  java script in ur browser).
  2. Server site validation (using Validator method or ActionServlet class and).
There is another way which is defining the rules of validation in validation-rule.xml file.

When some data validation is not present in the Validator framework, then programmer can generate own validation logic, this User Defined Validation logic can be bind with Validation Framework.
Validation Framework consist of two XML configuration Files:
1. Validator-Rules.xml file
2. Validation.xml file

Read More →