Hi,
I am a newbie to struts. Right now, I am able to display server side
errors using the html:errors tag. But, I want to extend the
functionality of this to display some dynamic text.
I want to pass a parameter to the tag in Application.properties file
which adds the parameter to the text
Hi,
I'm new with Struts and have a question on how to
display error messages.
In my Action I detect an error and take the following
actions:
- Create an ArrayErrors object, errors
- Add a new ArrayError to errors
- Save errors in request
- Retrieves the messages with html:errors/ in my jsp
Is the error.company.updatecollision defined in the
ApplicationResources.properties
files in the Web-inf/classes/ repertory ?
-Message d'origine-
De: Anna Englund [mailto:[EMAIL PROTECTED]]
Date: mercredi 26 septembre 2001 15:55
À: [EMAIL PROTECTED]
Objet: Using html:errors/
Hi,
I'm
If she hadn't declare the struts-html.tld, she should have a struts error
message
like html tag is not defined
-Message d'origine-
De: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
Date: mercredi 26 septembre 2001 15:58
À: [EMAIL PROTECTED]
Objet: Re: Using html:errors/
are you
Had you added
error.company.updatecollision=Your Error Message
in the WEB-INF/Classes/ApplicationResources.properties file
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 9:59 PM
Subject: RE: Using html:errors
are you declaring the html tag library before you try to use the errors tag?
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
Anna Englund wrote:
Hi,
I'm new with Struts and have a question on how to
display error messages.
In my Action I detect an error and take the following
is not defined
-Message d'origine-
De: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
Date: mercredi 26 septembre 2001 15:58
À: [EMAIL PROTECTED]
Objet: Re: Using html:errors/
are you declaring the html tag library before you try to use the errors tag?
%@ taglib uri=/WEB-INF/struts-html.tld
You're right. Apologies to Jonathan M Crater
-Message d'origine-
De: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Date: mercredi 26 septembre 2001 16:11
À: [EMAIL PROTECTED]
Objet: RE: Using html:errors/
If you don't declare the taglib at the top of the JSP,
you won't get any error
Yes, I am. I use a lot of the other html tags, such as
html:text without problem.
//Anna
--- Jonathan M Crater
[EMAIL PROTECTED] wrote:
are you declaring the html tag library before you
try to use the errors tag?
%@ taglib uri=/WEB-INF/struts-html.tld
prefix=html %
Anna Englund wrote:
/ApplicationResources.properties file
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 9:59 PM
Subject: RE: Using html:errors/
Is the error.company.updatecollision defined in
the
ApplicationResources.properties
files in the Web
Make sure that error.company.updatecollision is defined correctly in your
ApplicationResources.properties file ... I had a similar problem.
Lou
From: David Winterfeldt [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Using html:errors/
Date: Wed, 26 Sep 2001 07
11 matches
Mail list logo