Hi Priya,
Conditional cross-field validation like this is possible in Struts since version 1.1 which added the
requiredif validator. This validation rule has been deprecated in favour of the new rule
validwhen which has been added in version 1.2.0
For information and examples on using these validator rules check the
Validator documentation on the struts site.
However, I think that these validators can be used only for server side validation, not client-side javascript validation.
Sheldon Fernandes
[Edit: I assumed you were talking about xml based validation provided by the validator framework]
[ September 29, 2004: Message edited by: Sheldon Fernandes ]