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 ...

Echoing what Ravi said, you can code this trivially in Java in your action's validation. If you prefer using declarative validation (XML or Struts2 annotations) you will need to use 'conditional validation'. The details of how to do that depend on what version of Struts you're using, and what validation strategy you use.

Please post more details of your environment and setup if you need further help.

L.


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

Reply via email to