one approach:
you need to achieve appearing and dissappearing of the filelds based on some
event (say radio button) using client side javascript. how ever in either
case according to the html the fields are all present (i.e. x,y,z) now in
action calss you can write validate method in which you can write
conditional validation based on the radio value submitted to the method.


Kavita Mehta wrote:
> 
> Hi,
> i have a JSP in which either I show <x> , <y> fieds  or <y>, <z> field 
> based on some condition . 
> 
> Now, i have to validate all x, y,z fields in such a way that if these 
> fields are present, they should be validated else not .
> 
> can somebdy pls suggest how to do this ...
> 
> Regards,
> Kavita
> 
> 
> 
> 
> *****************************************************DISCLAIMER*****************************************************
> 
> This message and/or attachment(s) contained here are confidential,
> proprietary to HUGHES SYSTIQUE and its customers. 
> Contents may be privileged or otherwise protected by law. The information
> is solely intended for the entity it is 
> addressed to. If you are not the intended recipient of this message, it is
> strictly prohibited to read, forward, 
> print, retain, copy or disseminate this message or any part of it. If you
> have received this e-mail in error, 
> please notify the sender immediately and delete the message.
> 
> ********************************************************************************************************************
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/validating-conditional-fields...-tp15037677p15044693.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to