You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sr...@wachovia.com on 2007/07/20 01:02:21 UTC
New Bee Question: How do i enable validation only if certain condition is
met?
Hi,
My Question: Suppose i have a form and it has 5 text boxes. I am using
validation.xml for validating the data entered in the textboxes. My
requirement is, if the user nters data in atleast one of the textboxes
(valid or invalid) and hits submit. Only then i want to validate all the
textboxes for the valid data else i just want to go to next page.
Thanks
-Harsh
Re: New Bee Question: How do i enable validation only if certain condition is met?
Posted by yitzle <yi...@users.sourceforge.net>.
On 7/19/07, sriharsha.chevuru@wachovia.com
<sr...@wachovia.com> wrote:
> My Question: Suppose i have a form and it has 5 text boxes. I am using
> validation.xml for validating the data entered in the textboxes. My
> requirement is, if the user nters data in atleast one of the textboxes
> (valid or invalid) and hits submit. Only then i want to validate all the
> textboxes for the valid data else i just want to go to next page.
Have the validator check that EITHER the fields are all empty OR the
data is valid
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org