pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
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

Re: pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
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

Re: pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
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

Re: pb using validator it does not work !

2006-07-21 Thread Jeremy Jardin
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:

pb using validator with struts1.2.9

2006-07-25 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-25 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
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 >

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
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

Re: pb using validator with struts1.2.9

2006-07-26 Thread Jeremy Jardin
(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'

Re: pb using validator with struts1.2.9

2006-07-27 Thread Jeremy Jardin
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