Re: validating conditional fields...

2008-01-23 Thread Laurie Harper
Kavita Mehta wrote: Hi, i have a JSP in which either I show , fieds or , 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 ... Echoing wha

Re: validating conditional fields...

2008-01-23 Thread ravi_eze
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