| java.lang.Object org.apache.struts.validator.validwhen.ValidWhen
ValidWhen | public class ValidWhen (Code) | | This class contains the validwhen validation that is used in the
validator-rules.xml file.
since: Struts 1.2 |
Method Summary | |
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
test parameter.
Parameters: bean - The bean validation is being performed on. Parameters: va - The ValidatorAction that is currently beingperformed. Parameters: field - The Field object associated with thecurrent field being validated. Parameters: errors - The ActionMessages object to add errors toif any validation errors occur. Parameters: request - Current request object. |
validateValidWhen | public static boolean validateValidWhen(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request)(Code) | | Checks if the field matches the boolean expression specified in
test parameter.
Parameters: bean - The bean validation is being performed on. Parameters: va - The ValidatorAction that is currently beingperformed. Parameters: field - The Field object associated with thecurrent field being validated. Parameters: errors - The ActionMessages object to add errors toif any validation errors occur. Parameters: request - Current request object. true if meets stated requirements,false otherwise. |
|
|