struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Turner" <>
Subject RE: My dilema: Much improved version of requiredif ready, 1.1 or 1.2?
Date Thu, 06 Mar 2003 06:42:25 GMT
Actually, I realized just after I sent this that if I took the required
part out and called it validwhen instead, you end up with a true general
purpose validation tool!  So that's the one I'm proposing.  Basically,
if you had a field lastName that was required if firstName was filled
in, you say:

((lastName != null) or (firstName == null))

I.e., the field is valid if it isn't null, or the firstName field is

This means you can generate an error on a field based solely on the
values of other fields.


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

View raw message