commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <>
Subject Re: [validator] validate if field not null/ValidWhen
Date Fri, 09 Jan 2004 15:07:30 GMT

--- Darren Hartford <> wrote:
> Hey all,
> I noticed in Struts they have a 'validwhen' rule to help where you only
> want to process validation based on the rule (i.e. only check if it is
> 'integer' if the field is not null).
> Does the straight validator have same/similar functionality for use
> outside of struts? I can't seem to figure it out or find any examples.

Commons Validator provides 2 major pieces of functionality:
1.  Basic helper methods that validate credit cards, numbers, etc.
2.  A framework for plugging in validation actions to be run against

It does not provide any validation actions out of the box because they are
custom for each environment.  Struts provides many of these actions like
validwhen that are tailored for the Struts web environment.


> TIA!!
> -D
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message