My form contains a checkbox and a text field. Entering a value in the text field is mandatory only if the checkbox is selected. How to write the conditional validation for this?
I tried the validation entry as below but it is not working– <field name="user.clockNumber"> <field-validator type="conditionalvisitor"> (checkbox == true) and (textbox).equals("") <message>Please enter Clock Number.</message> </field-validator> </field> Can anyone help me? I am using struts ver 2.0.14. -- View this message in context: http://www.nabble.com/Struts-2---Conditional-Validation-tp20964764p20964764.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org