RE: Validator Framework 1.29

2006-12-20 Thread nagesh.kumar
Use this -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 9:16 AM To: Struts Users Mailing List Subject: Re: Validator Framework 1.29 On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: &

Re: Validator Framework 1.29

2006-12-20 Thread Niall Pemberton
On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Hello, I am having some issues with getting the messages from the validator framework from showing. Actually, I have some old code like this: that used to work, before upgrading

Re: Validator FrameWork

2006-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > Thank u, > it works great :-) No problem. > I have : > > > > May I ask u, dear Christopher, what's the difference of it with what u have > done : > > key="error.unmatched.password.confirm" /> > I'm not s

Re: Validator FrameWork

2006-12-08 Thread Thomas Thomas
Thank u, it works great :-) I have : May I ask u, dear Christopher, what's the difference of it with what u have done :

Re: Validator FrameWork

2006-12-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > (*this* == password) > > But it still doesn't work This is exactly what I have in my setup, and it works like a charm: test (

Re: Validator FrameWork

2006-12-07 Thread Thomas Thomas
Instead of : (passwordCheck == password) I put : (*this* == password) But it still doesn't work

Re: Validator FrameWork

2006-12-07 Thread Thomas Thomas
Dear Sean, thank u for your precious support. I added this : test (passwordCheck == password) But it's not working :-(

RE: Validator FrameWork

2006-12-07 Thread O'Shea, Sean
Use the validWhen validator for the password and the passwordCheck fields: http://struts.apache.org/1.2.x/userGuide/dev_validator.html You'll need to add the passwordCheck field to your registerForm. I've found these links useful when investigating commons-validator: * commons validator exa

Re: Validator Framework problem

2006-11-30 Thread Niall Pemberton
On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote: Hi, since I added a constraint for the length with minlength, I have the following errror : 28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate GRAVE: org.apache.struts.util.StrutsValidator org.apache.commons.validato

Re: Validator Framework problem

2006-11-30 Thread Thomas Thomas
Nobody can help me ? No-one has *Any* idea ?

Re: validator framework

2006-10-23 Thread Laurie Harper
Yariel Ramos Moreno wrote: How can I validate a form field to accept numbers from 1 to 99 or an underscore (_) using the validator framework. The application is in Struts 1.1. If you didn't have the requirement to accept underscore, intRange would be what you were looking for. With that requi

Re: validator framework

2006-10-20 Thread Sócrates Medina
Check this document, slide 30 by Shang Shin. http://www.javapassion.com/j2ee/StrutsValidationFramework_speakernoted.pdf I think it's a good explanation...Check it out. Check intRange key, how he works with it. For dominicans, cubans are our brothers...we share historical events! I hope this co

Re: Validator framework javascript error messages

2006-10-16 Thread Laurie Harper
Puneet Lakhina wrote: Hi, I have the following key value pair in ApplicationResource.properties required = {0} is required. I used this when I was doing only server side validation, to display a list of error messages when some validation failed. Now Im using the to do the same thing on clien

Re: Validator FRamework

2006-09-07 Thread Laurie Harper
sheetal wrote: Thanks for the help.. Yesterday I tried and it worked... But the problem now is that its message string is not coming... I had made an entry for it in applicationresoUrces.properties... BUT STILL IT'S UNABLE TO PICK IT FROM THERE.. What message string? How are you specifying it?

Re: validator framework

2006-09-07 Thread Laurie Harper
Gomathi wrote: Hai, Is the validator framework is only for dynavalidatorform? I am using actionform using validator framework.Its not working fine how? You need to derive your form beans from ValidatorActionForm, not just ActionForm. DynaValidatorForm extends ValidatorForm, so that should be

Re: Validator FRamework

2006-09-05 Thread sheetal
Laurie Harper wrote: sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml

Re: Validator FRamework

2006-09-05 Thread Laurie Harper
sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
ups, sorry i thought you were using dinaform sorry El mar, 05 de 09 de 2006 a las 13:13, Jorge Martín Cuervo escribió: > hi > > why you use > com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead > java.lang.String in form-bean type? > > El mar, 05 de 09 de 2006 a las 10:48, sh

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
hi why you use com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead java.lang.String in form-bean type? El mar, 05 de 09 de 2006 a las 10:48, sheetal escribió: > Hi All, > I had problem.. > I am trying to implement client side validation using Validator FRamework. > I have add

RE: validator framework in my Action class

2006-03-06 Thread Marco Mistroni
OTECTED] > Sent: 06 March 2006 12:53 > To: Struts Users Mailing List > Subject: Re: validator framework in my Action class > > If you want to call the Validator then the easiest way to find out how is > to > look at the "validate" method of one of the "vali

Re: validator framework in my Action class

2006-03-06 Thread Niall Pemberton
gt; From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: 06 March 2006 12:53 > To: Struts Users Mailing List > Subject: Re: validator framework in my Action class > > If you want to call the Validator then the easiest way to find out how is > to > look at the "validate&q

Re: validator framework in my Action class

2006-03-06 Thread Dave Newton
Deepa Khetan wrote: > Thanks a lot for the suggestions. Can u plz direct me to some links whr i > get help for Jakarta POI?? > The following link may help: http://www.google.com/search?q=poi Focus less on the fish and fire-twirling links. Dave -

Re: validator framework in my Action class

2006-03-06 Thread Deepa Khetan
, as Niall suggested, Jakarta POI > > what you can do is to load your excel sheet using FileUpload, then use > Jakarta pOI from there on.. > > HTH >Marco > > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: 06 March 2006 12:53 >

RE: validator framework in my Action class

2006-03-06 Thread Marco Mistroni
--- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 06 March 2006 12:53 To: Struts Users Mailing List Subject: Re: validator framework in my Action class If you want to call the Validator then the easiest way to find out how is to look at the "validate" method of one of the "valida

Re: validator framework in my Action class

2006-03-06 Thread Niall Pemberton
If you want to call the Validator then the easiest way to find out how is to look at the "validate" method of one of the "validator" flavour ActionForms - for example ValidatorForm. As to validating an excel spreadsheet - typically validator is called with a "bean" (or form) full of data. If you a

Re: Validator framework hijacks requests! :(

2005-11-19 Thread Laurie Harper
Raghu Kanchustambham wrote: Thanks Laurie. Just curious.. should Struts ideally not "warn" me against this? When I define that something needs to be validated and there is no validate method or doesnt implement/declare the correct interface or class... it should have cribbed and told me so. This

[OT] Re: Validator framework hijacks requests! :(

2005-11-19 Thread Dave Newton
Raghu Kanchustambham wrote: This reminds me of experiences programming in the primitive typeless languages! Primitive like... um... Python? Ruby? Lisp? i accidentally named my file as validations.xml (plural) and declared it as validation.xmlin struts-config. And it took me a lot of effort t

Re: Validator framework hijacks requests! :(

2005-11-19 Thread Raghu Kanchustambham
Thanks Laurie. Just curious.. should Struts ideally not "warn" me against this? When I define that something needs to be validated and there is no validate method or doesnt implement/declare the correct interface or class... it should have cribbed and told me so. This reminds me of experiences prog

Re: Validator framework hijacks requests! :(

2005-11-18 Thread Laurie Harper
One thing jumps out right off: your form bean is a DynaActionForm. It needs to be an instance of ValidatorActionForm for validation to occur; either DynaValidatorActionForm form or, probably, DynaValidatorForm. If that doesn't work, I'd suggest adding a simple String-type property to the form

Re: Validator framework hijacks requests! :(

2005-11-18 Thread Raghu Kanchustambham
Thanks Laurie for the detailed explanation. I am still not able to get the validation working .. after spending almost a frustrating one week on it. Can you help me by telling me what I am doing wrong here... everything seems to be right.. just that it isnt working... :( Bean definition and Acti

Re: Validator framework hijacks requests! :(

2005-11-16 Thread Laurie Harper
Raghu Kanchustambham wrote: Thanks Laurie. It works with the way you suggested. But it makes a lot of things clumsy.. 1. I need to have different action class mappings potentially for each of the CRUD operations... though all of them use the same dispatch action class. Well, only for each case

Re: Validator framework hijacks requests! :(

2005-11-15 Thread Raghu Kanchustambham
Thanks Laurie. It works with the way you suggested. But it makes a lot of things clumsy.. 1. I need to have different action class mappings potentially for each of the CRUD operations... though all of them use the same dispatch action class. 2. I still havent figured out a way where you need to p

Re: Validator framework hijacks requests! :(

2005-11-13 Thread Laurie Harper
The easiest way is probably to split your action mapping out into two mappings, one for the operations that should have validation applied and one for the setup operations that shouldn't. Set validate="false" on the mapping for the setup operations, and make it the input for the other mapping w

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
Thanks Laurie for the suggestion. Then set the 'input' attribute for your validating actions to point to the pre-population action (so when validation fails, Struts forwards to preCreate, not directly to the JSP). That explains why the request variables are getting wiped off! :-) I real

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Laurie Harper
The trick is to only include validation on the data processing actions, not on the pre-display actions (i.e. use validate="false" on your preCreate action mapping, and only put validate="true" on the action you submit the form to). Then set the 'input' attribute for your validating actions to p

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Paul Benedict
What is preCreate? Is that a method you have? Know that the validator will not call your action if a validation error has occured. --- Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > Thanks.. may be i will do it as a last option. > But is my explanation correct? I am new to Validation framewor

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
Thanks.. may be i will do it as a last option. But is my explanation correct? I am new to Validation framework .. just started using it for the last 2 days .. and struts as such for just over a month. So want someone's opinion on my explanation of why "state" is being lost! thanks raghu On 11/1

Re: Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
Hi Paul, The minute I supress the field which requires the centreList, everything works fine. As long as there is no "state" that is involved... that is .. simple textboxes its working fine. All other variables in the request variables are getting wiped off ! :( On 11/12/05, Paul Benedict <

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Paul Benedict
There's nothing wrong with ussing session scoped forms. You can attached these lists right to the form, if you want - just make sure you remove the form from memory when you're finished. --- Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > I think I can explain it now. > I hit the action serv

Re: Validator framework introduces errors

2005-11-12 Thread Paul Benedict
Some things to check: 1) You have a resource bundle loaded by Struts. 2) Your keys listed in the validator are in the resource bundle. 3) You have a configuration file which lists out the validations needed by the validator. 4) You're using the correct version of validator for your version of Str

Re: Validator Framework question

2005-03-15 Thread Vamsee Kanakala
Senthivel U S wrote: Each sub application is having its own config file but I could not create different validation.xml for each sub application. If I create also it takes only one validation.xml file into consideration. This may sound silly, but did you name them differently? Vamsee. --

RE: Validator Framework question

2005-03-15 Thread Senthivel U S
Greetings, We have divided our application into sub application (modules). Each sub application is having its own config file but I could not create different validation.xml for each sub application. If I create also it takes only one validation.xml file into consideration. Thanks in advance. R

RE: Validator Framework

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Carolina Serrano [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 2:00 PM > To: 'Struts Users Mailing List' > Subject: RE: Validator Framework > > > Yes, you are right, but the thing is that we have to validate

RE: Validator Framework

2004-12-21 Thread Carolina Serrano
Yes, you are right, but the thing is that we have to validate in both sides. I ´ll try to be more specific. We have this situation: date: 21/12/2004 dateGreaterEqualThan: 21/12/1--> this is an error because it is not a DATE. I got the following message: the "dateGreaterEqualThan" is minor

RE: Validator Framework

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Carolina Serrano [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 1:35 PM > To: [EMAIL PROTECTED] > Subject: Validator Framework > > > > I'm using the validator framework , doing validations that depends on > others. > > for example: dateaftert

Re: Validator Framework, WHAT's UP !!!!

2004-05-24 Thread ksitron
Thanks for the reply mark. I finally solved the problem. There were two things. 1, I am using tiles defintitions. I had inadvertantly forgotten to place a closing in my base tile. For some reason this screwed everything up. 2) For some strange reason, the validation framework ONLY sees error m

RE: Validator Framework, WHAT's UP !!!!

2004-05-23 Thread Mark Mandel
What does your Application.properties file look at? (or whatever you call your resource file) Mark -Original Message- From: ksitron [mailto:[EMAIL PROTECTED] Sent: Sunday, 23 May 2004 7:22 AM To: Struts Users Mailing List Subject: Validator Framework, WHAT's UP I'm using the 1.1

Re: Validator Framework

2004-04-20 Thread Adam Hardy
yway, the way I'd do it now is to use a [Dyna]ValidatorActionForm form with everyone the fields defined and different rules defined for each action. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 1:16 PM To: Struts Users Mailin

RE: Validator Framework

2004-04-20 Thread Joe Hertz
veryone the fields defined and different rules defined for each action. > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 20, 2004 1:16 PM > To: Struts Users Mailing List > Subject: Re: Validator Framework > > > I thought Val

Re: Validator Framework

2004-04-20 Thread Adam Hardy
o I'd suggest replacing "Validator" with "Validation" in all of the above suggestions :-) -Joe -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 9:41 AM To: Struts Users Mailing List Subject: Re: Validator Framework --

RE: Validator Framework

2004-04-20 Thread Joe Hertz
lidator" with "Validation" in all of the above suggestions :-) -Joe > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 20, 2004 9:41 AM > To: Struts Users Mailing List > Subject: Re: Validator Framework > > >

Re: Validator Framework

2004-04-20 Thread Hubert Rabago
--- Joe Germuska <[EMAIL PROTECTED]> wrote: > Let's try a quick poll -- are these better names? > > NameDynaValidatorForm for DynaValidatorForm > PathDynaValidatorForm for DynaValidatorActionForm > > If so, we could deprecate the old names and put in new ones. > > If these aren't good, people a