org.apache.struts.validator.validwhen
public class ValidWhen extends Object
Since: Struts 1.2
| Field Summary | |
|---|---|
| static Log | log
Commons Logging instance. |
| Method Summary | |
|---|---|
| static boolean | isString(Object obj)
Returns true if obj is null or a String. |
| 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.
|
obj is null or a String.test parameter.
Parameters: bean The bean validation is being performed on.
va The ValidatorAction that is currently being
performed.
field The Field object associated with the current
field being validated.
errors The ActionMessages object to add errors to if any
validation errors occur.
request Current request object.
Returns: true if meets stated requirements,
false otherwise.