Hi all,
I'm trying to display errors on a jsp to which my form returns if the
data submitted is invalid.
My form extends org.apache.struts.validator.ValidatorForm
some fields use the validator form validation, but for custom server
side validation I overwrite the
validate method as follows:
:Wed, 02 Jul 2003 10:28:03
to: [EMAIL PROTECTED]
subject: Re: html:errors/ problems
Hi all,
I'm trying to display errors on a jsp to which my form returns if the
data submitted is invalid.
My form extends org.apache.struts.validator.ValidatorForm
some fields use
July 2003 10:40
To: [EMAIL PROTECTED]
Subject: Re: html:errors/ problems
Hi Brian,
I had a problem like that when I ommited the following values from my
ApplicationResources file:
errors.header = ul
errors.footer = /ul
errors.prefix = li
errors.suffix =
Once I added them it worked fine
:[EMAIL PROTECTED]
Sent: 02 July 2003 10:40
To: [EMAIL PROTECTED]
Subject: Re: html:errors/ problems
Hi Brian,
I had a problem like that when I ommited the following values from my
ApplicationResources file:
errors.header = ul
errors.footer = /ul
errors.prefix = li
fine.
I really appreciate your help!
Brian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 11:26
To: [EMAIL PROTECTED]
Subject: RE: html:errors/ problems
Brian,
You want to have the message key in your ActionError and struts will
resolve
the message in my
Resource bundle. Once I put it in, everything worked fine.
I really appreciate your help!
Brian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 11:26
To: [EMAIL PROTECTED]
Subject: RE: html:errors/ problems
Brian,
You
Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 12:38
To: Struts Users Mailing List
Subject: RE: html:errors/ problems
Brian,
Now that the messages are working, one other thing you might want to
check is
whether your validator-based validation errors are really being
: html:errors/ problems
Brian,
Now that the messages are working, one other thing you might want to
check is
whether your validator-based validation errors are really being
captured. The
first few lines of your validate method look like they just ignore the
result of
calling super.validate
Absolutely! Large open-source projects...unbeatable!!
Viva la revolucion!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 14:23
To: Struts Users Mailing List
Subject: RE: html:errors/ problems
;-) Glad it helped. Nothing like having billions
9 matches
Mail list logo