--- "Peter L. Berghold" <[EMAIL PROTECTED]> wrote: > Consider the following sniglet from my > validation.xml: > > <field property="nonmember_dropin_rate_rq" > depends="requiredif"> > <arg0 key="label.nonmember_dropin_rate"/> > <var> > <var-name>field[0]</var-name> > <var-value>dropins_allowed_rq</var-value> > </var> > <var> > <var-name>fieldTest[0]</var-name> > <var-value>EQUALS</var-value> > </var> > <var> > <var-name>fieldValue[0]</var-name> > <var-value>on</var-value> > </var> > </field>
What version of Struts are you using? IIRC requiredif was deprecated immediately after 1.1 (I just checked; see doc link below) in favor of validwhen. That said, if "on" is the value of the checked box (and, perhaps, it's a java.lang.String) I would have thought what you had there was correct :/ http://struts.apache.org/1.1/userGuide/dev_validator.html BTW, links to version 1.1 seem to be somewhat hosed; I had to play around a bit to get there. d. ____________________________________________________________________________________ Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]