-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pushkar,
pushkar.p@(protected):
> Can you please tell me whether I can validate a set of radio buttons so that
> atleast one of them is checked, using the struts validation.xml? Is there a
> pre-defined validator method (like required) defined for that or will I have
> to write a custom validator method?
You want to look into using the "validwhen" validator, which requires
some reading. Check out this page
(http://struts.apache.org/1.3.5/faqs/validator.html) and read the
section titled "Designing Complex Validations with validwhen"
You'll want a field set up with a "validwhen" test like:
((*this* != null) or (otherField != null)) or (anotherField != null) ...
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFv4KH9CaO5/Lv0PARAuo3AKCN+yenAN3RTWjjkmt2bkxeQ/A34wCcCOXA
/nMAgdUEnqEbrzw1/Ako6cs=
=ciOF
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)