Just food for thought:
How about using the OGNL expression language (www.ognl.org) rather than
writing your own parser? WebWork, Tapestry, and certainly others, are
using OGNL. (and the creator of it is a good friend of mine!)
Erik
On Thursday, March 6, 2003, at 12:56 AM, James Turner
, just a generated class file?
Dave
From: James Turner [EMAIL PROTECTED]
Reply-To: Struts Developers List [EMAIL PROTECTED]
To: 'Struts Developers List' [EMAIL PROTECTED]
Subject: RE: My dilema: Much improved version of requiredif ready, 1.1 or
1.2?
Date: Thu, 6 Mar 2003 01:42:25 -0500
Actually, I
James,
I haven't even been able to figure out requiredif! I think
your feature is
great but we need to show some discipline and maintain the
1.1 freeze. IMO,
this should be a definite addition for 1.2.
I can live with that, I can stick it in the nightly build after we
finally ship
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: