try using validwhen - something like: <field property="lunchFrom" depends="validwhen"> <arg key="Lunch from" resource="false"/> <var> <var-name>test</var-name> <var-value>((lunchBreak == 'N') or (*this* != null))</var-value> </var> </field>
<field property="lunchTo" depends="validwhen"> <arg key="Lunch to" resource="false"/> <var> <var-name>test</var-name> <var-value>((lunchBreak == 'N') or (*this* != null))</var-value> </var> </field> -----Original Message----- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 October 2006 4:49 PM To: user@struts.apache.org Subject: requiredif help? HI friends In my form, i have to validate two fields,if another check box is not selected, means if the user checked no lunch break,lunch from and lunch to are not required,else both are monadatory. i hope requiredif suits for this, if so, give me some sample code or any artical for this or is there any better solution for this,help for that ur's Mallik -- View this message in context: http://www.nabble.com/requiredif-help--tf2414782.html#a6731043 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]