org.davesag.generica.util
Class Validation

java.lang.Object
  extended byorg.davesag.generica.util.Validation

public class Validation
extends Object

A collection of useful Validation functions that somehow got left out of struts.

Since:
Generica 1.0
Version:
CVS Revision $Id: Validation.java,v 1.7 2004/03/30 13:00:43 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Constructor Summary
Validation()
           
 
Method Summary
static boolean validateTwoFields(Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionErrors errors, HttpServletRequest request)
          perfect for comparing password fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validation

public Validation()
Method Detail

validateTwoFields

public static boolean validateTwoFields(Object bean,
                                        org.apache.commons.validator.ValidatorAction va,
                                        org.apache.commons.validator.Field field,
                                        ActionErrors errors,
                                        HttpServletRequest request)
perfect for comparing password fields.

Parameters:
bean - The bean with the form properties to validate
va - The ValidatorAction.
field - The field to validate
errors - The errors to add to.
request - The servlet request.
Returns:
true if the two fields matched okay.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.