2009 17:55
To: Struts Users Mailing List
Subject: Re: form validation gets indefinite loops in web browsers
Jipu Jiang wrote:
>prepare
Why are you redirecting?
-Dale
-
To unsubscribe, e-mail: user-unsubscr...@struts.a
Jipu Jiang wrote:
prepare
Why are you redirecting?
-Dale
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Your jsp has access to your action, in the valuestack. So, you should
be able to ask
Beware: for validation errors,
besides hasActionErrors() you might want to ask hasFieldErrors().
Or use hasErrors() , that includes both
Hernán J. González
http://hjg.com.ar/
On Fri, Feb 27, 2009
Chetan Pandey wrote:
Is their a way to specify multiple inputs.
Nope. A wise man once told me that validate="true" is there only for
convenience. So the workaround is to do something like
'validate="false"', omit the input= tag, and add forwards like,
public void create( ActionM
Nope. I'm using the default commons-validator and strus libs shipped
with 1.2.9. And sorry but did not understand your XYZ example ?
Regards
On 7/3/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
Make sure you're using the correct ValidatorXYZForm base class.
ValidatorActionForm uses the key
Make sure you're using the correct ValidatorXYZForm base class.
ValidatorActionForm uses the key of the URI, ValidatorForm uses the key of the
form name.
Did you recently upgrade Struts or the Validator?
Vinicius Carvalho <[EMAIL PROTECTED]> wrote: I did a deeper look on my project,
enabled de
I did a deeper look on my project, enabled debug output and even
though on the log it says that the requestprocessor is calling
validate, my validate method on my class (gave up on validation using
xml) does not even get called...
Any ideas?
Regards
On 7/3/06, Vinicius Carvalho <[EMAIL PROTECTE
repareName() method.
Niall
- Original Message -
From: "Donie Kelly" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 08, 2004 5:35 PM
Subject: RE: Form validation
> Hi Jim
>
> Tried that but I have
From: "Donie Kelly" <[EMAIL PROTECTED]>
> Tried that but I have Javascript validation turned on for the page. It's
> kicking in before the submit. Is there a way to disable the javascript
> validation when the cancel button is pressed.
In your case, it sounds to me like the cancel/reset buttons do
> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 08, 2004 10:35 AM
> To: Struts Users Mailing List
> Subject: RE: Form validation
>
>
> Hi Jim
>
> Tried that but I have Javascript validation turned on for
t: 08 December 2004 17:36
To: Struts Users Mailing List
Subject: RE: Form validation
> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 08, 2004 10:22 AM
> To: Struts Users Mailing List
> Subject: RE: Form validation
>
>
&g
> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 08, 2004 10:22 AM
> To: Struts Users Mailing List
> Subject: RE: Form validation
>
>
> Thanks Jim, that works for the initial validation. Thank you.
>
> However
From: "Donie Kelly" <[EMAIL PROTECTED]>
> I have a form that uses the standard form validation based on the
> validation.xml file. It all works fine except for when I'm pre-populating
> the form on first showing. The validation is kicking in before the data is
> retrieved from the database.
In the
n the form I cannot reset the page.
What can I do in this case?
Thanks
Donie
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: 08 December 2004 17:28
To: Struts Users Mailing List
Subject: RE: Form validation
> -Original Message-
> From: Donie Kelly [ma
> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 08, 2004 10:14 AM
> To: Struts Users Mailing List
> Subject: Form validation
>
>
> Hi all
>
>
>
> I have a form that uses the standard form validation based on the
> validation.xml file. I
Thanks Jim. I'll take a look.
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 5:33 PM
To: Struts Users Mailing List
Subject: RE: form validation (How to setup commons-logging to debug)
> -Original Message-
>
> -Original Message-
> From: Leung, Albert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 2:31 PM
> To: Struts Users Mailing List
> Subject: RE: form validation (How to setup commons-logging to debug)
>
>
> Anywhere for now is fine with me.
The
Anywhere for now is fine with me.
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 5:26 PM
To: Struts Users Mailing List
Subject: RE: form validation (How to setup commons-logging to debug)
> -Original Message-
> From:
> -Original Message-
> From: Leung, Albert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 2:27 PM
> To: Struts Users Mailing List
> Subject: RE: form validation (How to setup commons-logging to debug)
>
>
> Thanks. You wouldn't mind tell
Thanks. You wouldn't mind telling where the output goes? Is it going to
STDOUT?
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 5:12 PM
To: Struts Users Mailing List
Subject: RE: form validation (How to setup commons-logging to
s
you aren't interested in seeing display logging information.
Regards,
David
P.S. I guess it's now "Hey Jim, [STRUTS] Tag, you're it!"
-Original Message-
From: Leung, Albert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 5:03 PM
To: Struts Users Mailing
I'm going to give that a try. Thanks.
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 5:07 PM
To: Struts Users Mailing List
Subject: RE: form validation (How to setup commons-logging to debug)
> -Original Message
> -Original Message-
> From: Leung, Albert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 2:03 PM
> To: Struts Users Mailing List
> Subject: RE: form validation (How to setup commons-logging to debug)
>
>
> I'm sorry. I've check the
r 01, 2004 4:23 PM
To: Struts Users Mailing List
Subject: RE: form validation (How to setup commons-logging to debug)
I haven't done this (manually - I've been copying my blank setup) in a
while, but the basic steps are:
a) Make sure you have a commons-logging jar in WEB-INF/lib
I use
-
From: Leung, Albert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 3:41 PM
To: Struts Users Mailing List
Subject: RE: form validation
David,
I've checked everything thoroughly. I've eliminated spelling errors and
missing references. It would be a great help if you could sh
"Jim Barrows" <[EMAIL PROTECTED]> wrote on 09/01/2004 03:35:14 PM:
>
>
> > -Original Message-
> > From: Leung, Albert [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 01, 2004 12:31 PM
> > To: Struts Users Mailing List
> > Sub
TED]
Sent: Wednesday, September 01, 2004 3:35 PM
To: Struts Users Mailing List
Subject: RE: form validation
Albert,
When all that is correctly setup, I've only ever had problems with a
misspelled forward inside my action or missing JSP/html/other pages. I've
had a blank page show up when th
> -Original Message-
> From: Leung, Albert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 12:31 PM
> To: Struts Users Mailing List
> Subject: RE: form validation
>
>
> Yes they are exactly the same. So 1, 2, and 3 are ok.
Does the jsp/action/
ction?
Have you turned on the logging features or commons logging for further
details even up to the debug level?
Regards,
David
-Original Message-
From: Leung, Albert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 3:26 PM
To: Struts Users Mailing List
Subject: RE: form validati
Yes they are exactly the same. So 1, 2, and 3 are ok.
>
> >
> > For some reason I can't get form validation to work for a particular
> > project. If I take the same ValidatorForm, use the same
> > validation entry in
> > formset, and update the struts-config to use the same form
> > bean and ac
> -Original Message-
> From: Leung, Albert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 12:13 PM
> To: Struts Users Mailing List
> Subject: RE: form validation
>
>
>
> >
> > For some reason I can't get form validation to wor
: form validation
Leung, Albert wrote:
> For some reason I can't get form validation to work for a particular
> project. If I take the same ValidatorForm, use the same validation entry
in
> formset, and update the struts-config to use the same form bean and action
> it works fine i
; Regards,
> David
-Original Message-
From: Leung, Albert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 3:13 PM
To: Struts Users Mailing List
Subject: RE: form validation
>
> For some reason I can't get form validation to work for a particular
> project. I
Leung, Albert wrote:
For some reason I can't get form validation to work for a particular
project. If I take the same ValidatorForm, use the same validation entry in
formset, and update the struts-config to use the same form bean and action
it works fine in another project. The project that has pro
Wednesday, September 01, 2004 3:13 PM
To: Struts Users Mailing List
Subject: RE: form validation
>
> For some reason I can't get form validation to work for a particular
> project. If I take the same ValidatorForm, use the same
> validation entry in
> formset, and update the s
>
> For some reason I can't get form validation to work for a particular
> project. If I take the same ValidatorForm, use the same
> validation entry in
> formset, and update the struts-config to use the same form
> bean and action
> it works fine in another project. The project that has
> pro
> -Original Message-
> From: Leung, Albert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 11:56 AM
> To: Struts Users Mailing List
> Subject: form validation
>
>
> For some reason I can't get form validation to work for a particular
> project. If I take the same Validat
in the validation xml specify the page attribute (value should be equal to the page
number) against the form property.Also set the page property on the input screen.
-Original Message-
From: RamKumar [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 10:31 AM
To: [EMAIL PROTECTED]
As you suggested, setting validate to false worked. Strange it has never
happened with any other forms in my app. Thanks for your help
Ciaran
-Original Message-
From: ksitron [mailto:[EMAIL PROTECTED]
Sent: 15 June 2004 17:59
To: Ciaran Hanley
Subject: Re: Form Validation
Ciaran Hanley wrote:
> Hello,
>
>
>
> I have a simple form in my application which I am having trouble with.
>
>
>
> On entering the action class and forwarding to the JSP I see error
> messages which should only appear when the form has been validated
> after submitting.
do you check that the for
Ciaran:
Try specifically adding "validate=false" and see what happens..?
Geeta
> -Original Message-
> From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 11:28 AM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject
PROTECTED]
Sent: 15 June 2004 17:02
To: Struts Users Mailing List
Subject: Re: Form Validation Before Submit
In your struts-config.xml, if you have the validate="true" set. Then,
the validate method of your form will be
called before your action.execute method is called.
Ciaran Hanley wrot
: [EMAIL PROTECTED]
Subject: Re: Form Validation Before Submit
Ciaran-
Sounds like you may possibly have key or mouse events hooked to JavaScript?
Could you display for us the entire Form Header (specifically the JavaScript
portion) for us?
Gura mie ayd,
Martin
- Original Message -
From
In your struts-config.xml, if you have the validate="true" set. Then,
the validate method of your form will be
called before your action.execute method is called.
Ciaran Hanley wrote:
Hello,
I have a simple form in my application which I am having trouble with.
On entering the action class and
No is the short answer, but theres nothing to stop you storing them in the
request under your own key as well in your ActionForm's validate method.
Niall
- Original Message -
From: "Bullard, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 08, 2004 9:26 PM
Subject:
45 matches
Mail list logo