This article discusses two facets of the Struts-Validation framework. The first one deals with complex rules, while the second concerns information for creating custom rules that could be hooked up with the Validation framework.
To create a custom Validator, certain steps must be followed.
First, you need to create a Java class that will contain the validation logic. This is the basis of it all. The class would contain only one method. The method must be static, so that the framework can call it without having to create an object.