Hi,
I'm trying to use validator plugin in my application, and it does not work
at all !
First, I've just add in my jsp.
I've written a basic validation.xml file like this :
Then, I've also a classic validation-rules.xml file, with usefull rules.
Thoses files are un my WEB-IN
ValidatorForm !
On 7/20/06, Yee, Richard K CTR DMDC <[EMAIL PROTECTED]>
wrote:
What class is your sapinscription.form.StartSubscriptionForm extending?
-Richard
-Original Message-
From: Jeremy Jardin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 3:05 AM
To
rride that method ???
Hope this helps...
cheers,
-adam
Jeremy Jardin wrote:
> Hi,
>
> I'm trying to use validator plugin in my application, and it does not
> work
> at all !
>
> First, I've just add in my jsp.
>
> I've written a basic validation.xm
x27;"
Sent: Thursday, July 20, 2006 9:14 AM
Subject: RE: pb using validator it does not work !
> What class is your sapinscription.form.StartSubscriptionForm extending?
>
> -Richard
>
>
> -Original Message-
> From: Jeremy Jardin [mailto:[EMAIL PROTECTED]
> Sent:
Hi,
I'm trying to use struts plugin validator to check a big form.. and it works
well.. but I've a little pb with validwhen constraint;
I've written something like this :
test
((subscriptionType=="2")or
(subscript
you validate that
subscriptionType is an integer on [1,4]. Also, you don't need quotes
around the numbers. Struts is smart enough to try numbers first and
then if that doesn't work, it resorts to Strings. Besides, I'm not sure
the functionality you want is to compare Strings using ineq
Also, your rule basically reads now as "the field enterpriseName is
valid when the subscription type is greater than or equal to 1." So,
e.g., if your subscription type is a drop down list that only contains
the values 1,2,3,4, the enterpriseName field will always be valid.
Giv
et to the value you expect.
> >
> > Also, your rule basically reads now as "the field enterpriseName is
> > valid when the subscription type is greater than or equal to 1." So,
> > e.g., if your subscription type is a drop down list that only contains
>
location.href = "yourActionToDisplayJsp.do?subscriptionType=" + x;
}.
on your select tag call this function
you do not need to modify another section of code ..
hope this help ..
Regards
Irwan
On 7/26/06, Jeremy Jardin <[EMAIL PROTECTED]> wrote:
> hum,
>
> I mean
still doesn't work..
On 7/26/06, Jeremy Jardin <[EMAIL PROTECTED]> wrote:
-Irwan,
Thank you myuch for your help, but I don't have any problem regarding
those show/hide method !
I'm just wondering if the fact of removing some fields in the form could
be at the origi
(form) &&
validateDate(form) && validateEmail(form);
return (formValidationResult);
}
}
Maybe should I see a validateValidWhen(form) method should'nt I ?
On 7/26/06, Jeremy Jardin <[EMAIL PROTECTED]> wrote:
I'
alidwhen."
I fought with "validwhen" for two days before just using the validate()
method on the ValidatorForm. Since server-side validation has to be
done anyway, it's not like this detracts from the functionality.
-Adam
Jeremy Jardin wrote:
> -Adam,
>
> first, thanks for
12 matches
Mail list logo