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:
&
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
-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
Thank u,
it works great :-)
I have :
May I ask u, dear Christopher, what's the difference of it with what u have
done :
-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
(
Instead of :
(passwordCheck == password)
I put :
(*this* == password)
But it still doesn't work
Dear Sean,
thank u for your precious support.
I added this :
test
(passwordCheck == password)
But it's not working :-(
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
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
Nobody can help me ?
No-one has *Any* idea ?
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
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
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
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?
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
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
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
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
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
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
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
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
-
, 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
>
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 <
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
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
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.
--
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
> -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
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
> -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
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
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
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
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
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
--
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
>
>
>
--- 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
52 matches
Mail list logo