> From: Mallik [mailto:[EMAIL PROTECTED] > > HI friend > i have problem with validwhen, it is not working
What, specifically, does not work? > <field property="lunchFrom" depends="validwhen"> > <arg0 key="label.lunchFrom" resource="false"/> > <var> > <var-name>test</var-name> > <var-value>(noLunch == 'Y')</var-value> > </var> > </field> If I understand the documentation at http://struts.apache.org/1.2.9/userGuide/dev_validator.html correctly, you have said the following: "lunchFrom is valid if noLunch=='Y'." I believe what you *meant* to say is something more along the lines of "lunchFrom is valid if noLunch=='Y' and lunchFrom is not null". Translation of this into a valid expression is left as an exercise for the reader. Please feel free to remove superfluous indentation when posting code. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]