org.apache.struts.validator.validwhen
Class ValidWhen
java.lang.Object
   org.apache.struts.validator.validwhen.ValidWhen
org.apache.struts.validator.validwhen.ValidWhen
- public class ValidWhen 
- extends Object
This class contains the validwhen validation that is used in the
 validator-rules.xml file.
- Since:
- Struts 1.2
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ValidWhen
public ValidWhen()
validateValidWhen
public static boolean validateValidWhen(Object bean,
                                        ValidatorAction va,
                                        Field field,
                                        ActionMessages errors,
                                        Validator validator,
                                        HttpServletRequest request)
- Checks if the field matches the boolean expression specified in
 testparameter.
 
- 
- Parameters:
- bean- The bean validation is being performed on.
- va- The- ValidatorActionthat is currently being
                performed.
- field- The- Fieldobject associated with the
                current field being validated.
- errors- The- ActionMessagesobject to add errors to
                if any validation errors occur.
- request- Current request object.
- Returns:
- trueif meets stated requirements,- falseotherwise.
 
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.