-12-2003 at 5:37 Jerald Powel wrote:
it just occurrred to me, perhaps it may be due to the JSP:
html:errors /
as ActionMessages are not soley used for error handling? If this is the
case, what error tag will extract the error labels defined in my
Application.properties?
thanks again
G
To: Struts Users Mailing List
Subject: RE: [other] error tag
Hi Noel,
Thanks for that. Since that post, I have opted for constructing an
ActionMessages object and populating it with ActionMessage (s). This being
because I hear ActionError/s are deprecated as of Struts 1.2.
I have set up
Hello,
I am handling my errors and constructing an errors object thus:
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(Initialisation
error - userID not found));
saveErrors(request, errors);
-
From: Jerald Powel [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 21, 2003 9:45 PM
To: Struts Users Mailing List
Subject: [other] error tag
Hello,
I am handling my errors and constructing an errors object thus:
ActionErrors errors = new ActionErrors();
errors.add
, December 21, 2003 9:45 PM
To: Struts Users Mailing List
Subject: [other] error tag
Hello,
I am handling my errors and constructing an errors object thus:
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(Initialisation error - userID not found
it just occurrred to me, perhaps it may be due to the JSP:
html:errors /
as ActionMessages are not soley used for error handling? If this is the case, what
error tag will extract the error labels defined in my Application.properties?
thanks again
G
I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:
tiles:useAttribute name=menuon scope=request ignore='true'/
The runtime complains about tiles context not found as follow:
javax.servlet.jsp.JspException: Error - tag
Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 19:01
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.
Here is the source code producing your problem:
ComponentContext compContext = (ComponentContext
Here is the source code producing your problem:
ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
throw new JspException ( Error - tag useAttribute : no tiles context
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.
Hi, Shane,
This is just for your information.
An error in html table tag caused the tile context to be lost;-)
This is what it took to get rid of the nasty exception:
fixed this:table border=0
cellpadding=0 cellspacing=0
I'm not sure how could this html error to upset the tile by the way.
Jianbo
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 19:01
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found
Hi Cedric,
Please help with this error in the jsp file...
Error - tag useAttribute : no tiles context found.
thank in advanced
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Error tag returning null on either side of message
I am using the Struts 1.0.2 and Tomcat 4.0.4 B1. When
I use the standard html:errors/ tag I get the proper
message but there is null on either side.
Thanks,
Dan
__
Do You
Celestino Pena answered this in an earlier post:
In your properties file you are missing entries for
errors as in...
errors.header=h3font color=redValidation
Error/font/h3You must correct the following
errors) before proceeding:ul
errors.footer=/ulhr
Thanks Celestino!
--- Dan Paul [EMAIL
As part of formatting some validation error messages, I'm trying to print
out html:errors tag from within a single celled table. I only want the html
for the table to be printed if errors are present. I tried the
logic:present tag, which can print out the html if the error bean is
present. The
no no .use the html:message tag this should solve your problem
-Original Message-
From: Schmidt, Carl [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 12:01 PM
To: Struts (E-mail)
Subject: Formatting the error tag
As part of formatting some validation error
To: 'Struts Users Mailing List'
Subject: RE: Formatting the error tag
I'm not sure I understand. If I place the messages tag within the table in
the .jsp like so:
TABLE .
TRTD
html:messages/
/TD/TR
/TABLE
I don't see how the messages tag can in any way control whether or not the
table
Hello,
On Fri, 28 Dec 2001 14:36:33 -0600
[EMAIL PROTECTED] wrote:
The output shows the single error for legalName but includes the header and
footer.
Do I have an error in my thinking?
this is my observation, too. I think it would be great to be able to do
the following (just
[mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 12:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Error Tag Usage - Found the answer myself - I think
Hello!
I wanted to use errors tag in the following scenario: if there was an error
in the specific input control I'd like to change
Greetings:
I apologize if this has been answered before...
When I use the error tag to display the LIST of errors it works as expected
along with the header an footer that I have in my properties file.
However when I choose not to display the list, but instead just place
to Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Error Tag Usage
Greetings:
I apologize if this has been answered before...
When I use the error tag to display the LIST of errors it works as expected
along with the header an footer that I have
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 4:58 PM
To: Struts Users Mailing List
Subject: Re: Error Tag Usage - Found the answer myself - I think
I found this in the release notes for 1.0.1:
The html:errors when the property tag is specified, errors are no
longer
'
Subject: RE: Error Tag Usage - Found the answer myself - I think
Your off just a little bit, Struts automatically checks for the
existence of the header and the footer. So if it's in the properties
file it will use them. So if you don't want to use the header and the
footer take them out
All,
I am having a similar problem to Binh
(
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18646.html
).
I was wondering if anyone has a solution as to why I cannot get the
html:errors tag to work. I did notice that Struts docs say:
In order to use this tag successfully, you
for com.myapp.web. I suggest you copy it there in
your build process. Anyhow this setup works for me.
Sean
- Original Message -
From: Pete Serafin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 2:46 PM
Subject: Error tag problem
All,
I am having a similar
this setup works for me.
Sean
- Original Message -
From: Pete Serafin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 2:46 PM
Subject: Error tag problem
All,
I am having a similar problem to Binh
(
http://www.mail-archive.com/struts-user
26 matches
Mail list logo