| java.lang.Object org.apache.commons.validator.example.ValidateExample
ValidateExample | public class ValidateExample extends Object (Code) | | A simple example of setting up and using the Validator.
This simple example shows all the steps needed to set up and use
the Validator. Note that in most cases, some kind of framework
would be wrapped around the Validator, such as is the case with
the Struts Validator Framework. However, should you wish to use
the Validator against raw Beans in a pure Java application, you
can see everything you need to know to get it working here.
version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $ |
Method Summary | |
public static void | main(String[] args) This is the main method that will be called to initialize the Validator, create some sample beans, and
run the Validator against them. | public static void | printResults(ValidateBean bean, ValidatorResults results, ValidatorResources resources) Dumps out the Bean in question and the results of validating it. |
|
|