: 'Struts Users Mailing List'
Subject: RE: Conditional Validation
You can set this up as different forms that submit to the same action
(different action definitions if you like).
Now each of the forms will have their own validation in your validation.xml.
It's early and I haven&
You can set this up as different forms that submit to the same action
(different action definitions if you like).
Now each of the forms will have their own validation in your validation.xml.
It's early and I haven't had my coffee so let me know if that makes sense.
-Tim
-Original Message-
Seems like using a one line JavaScript to set a hidden field
based on the button that was clicked, and then using the
requiredif validation rules in conjunction with a mask for
each of your fields (using regular expression) should work.,
-jeff
On Tuesday, September 23, 2003, at 08:28 AM, Fenderb
On Jun 13, 2003, Jordan Reed <[EMAIL PROTECTED]> wrote:
|So what the validator does is only validate the field if the page attribute
|is >=.
Right, and that's my problem. I want the validation when the page
attribute == the value.
My form is "generally" created in page order, but not always
ssage-
From: Jordan Reed
To: Struts Users Mailing List
Sent: 6/13/2003 9:38 PM
Subject: Re: conditional validation in validation.xml
The Validator has some concept with the page attribute. If you look at
the
"Multi Page Form" section you get a hint at it:
http://jakarta.apache.org/s
The Validator has some concept with the page attribute. If you look at the
"Multi Page Form" section you get a hint at it:
http://jakarta.apache.org/struts/userGuide/dev_validator.html
In your jsp you need an element called page. I usually just put a static
hidden tag:
Then in your validation
6 matches
Mail list logo