org.davesag.generica.util
Class Validation
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Validation
public Validation()
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 validateva - The ValidatorAction.field - The field to validateerrors - 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.