You got to write a custom validation method in validation-rules.xml file to
handle this kind of cross validation. Let me know if you need this in
detail..

-----Original Message-----
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 1:15 PM
To: Struts
Subject: Validator and depends element


Does anyone know if the validator can be configured in such a way that if
you have two radio buttons on a page and a text box, to only validate the
contents of the text box when only a particular radio button is checked.

Ex:

Two radio buttons A & B and Textbox C. If B is checked then I want to
validate the contents of C. Otherwise I don't want to validate anything.

If anyone has an example of something like this, I would appreciate it if
you'd get back with me.

Thanks

JDA


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to