I have written an ExceptionHandler that extends the struts exceptionHandler.
I would like it to print a stack trace. So, I have done the following:
have a look at this blog entry, and the ExceptionHandler and JSP page I
use for displaying exception messages (and stacktraces)
What does the errors.detail string look like? Do you have a replacement
parameter in it for exception.getMessage() to be inserted into?
-daniel
Daniel A. Torrey
daniel at datorrey dot net
Quoting Sharmila Pandith [EMAIL PROTECTED]:
Hi,
I have written an ExceptionHandler that extends the
PROTECTED]
Sent: Sunday, November 16, 2003 9:09 PM
To: Struts Users Mailing List
Subject: Re: ExceptionHandler
Yes it is. I am from Brazil. It is in portuguese.
Tks.
- Original Message -
From: Rick Reumann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday
Check this article out:
http://javaboutique.internet.com/tutorials/excep_struts/index-7.html
-Richard
-Original Message-
From: Sharmila Pandith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: ExceptionHandler example
Hi,
Can anyone
Yes it is. I am from Brazil. It is in portuguese.
Tks.
- Original Message -
From: Rick Reumann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 17, 2003 2:39 AM
Subject: Re: ExceptionHandler
Felipe Nascimento wrote:
key
Assuming you want to do this to make use of the html:messages tag... The
default ExceptionHandler (org.apache.struts.action.ExceptionHandler) creates
an ActionErrors object which encapsulates the error message derived from the
Exception and the ExceptionConfig. By nature of the inheritance
When the declarative exception handling was introduced, I was very
concerned about the scope attribute in the ExceptionConfig. It is a
redundant
attribute if we obey the following rules:
1) All exceptions that could reach to the exception handler should be
fatal errors.
2) Fatal errors should
I don't believe there is currently a way to remove messages from the
session. How would Struts know when to remove them? I have written a
small subclass of ActionMessages that only returns its messages once.
This allows me to store messages in the session without them being
displayed multiple
What about adding a symmetrical removeErrors()/removeMessages() to Action?
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: ExceptionHandler storing ActionErrors in session
I don't
PM
To: Struts Users Mailing List
Subject: Re: ExceptionHandler storing ActionErrors in session
I don't believe there is currently a way to remove messages from the
session. How would Struts know when to remove them? I have written a
small subclass of ActionMessages that only returns its
-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: ExceptionHandler storing ActionErrors in session
I don't believe there is currently a way to remove messages from the
session. How would Struts know when
that idea some time ago and the consensus seemed to be that custom
tags shouldn't be altering session state.
David
robert
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re
: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:34 PM
To: Struts Users Mailing List
Subject: RE: ExceptionHandler storing ActionErrors in session
--- Mike Jasnowski [EMAIL PROTECTED] wrote:
What about adding a symmetrical removeErrors()/removeMessages() to
Action?
How
Jasnowski
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:34 PM
To: Struts Users Mailing List
Subject: RE: ExceptionHandler storing ActionErrors in session
--- Mike Jasnowski [EMAIL PROTECTED] wrote:
What about adding a symmetrical
then call
the
removeXXX() method.
Mike Jasnowski
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:34 PM
To: Struts Users Mailing List
Subject: RE: ExceptionHandler storing ActionErrors in session
--- Mike Jasnowski [EMAIL
How does one get a simple question answered?
I am stuck, the source is not helping, I have searched
the list, and this list won't tell me even if im on track?
-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 8:55 AM
To: Struts Users Mailing
On Tue, 2003-03-04 at 17:18, Ray Madigan wrote:
How does one get a simple question answered?
I am stuck, the source is not helping, I have searched
the list, and this list won't tell me even if im on track?
about:
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003
rhooo you need a beer :))
--
Alexandre Jaquet
- Original Message -
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 11:34 PM
Subject: RE: ExceptionHandler
On Tue, 2003-03-04 at 17:18, Ray Madigan wrote:
How does one
On Tue, 2003-03-04 at 17:38, alexj wrote:
rhooo you need a beer :))
That's a pretty good idea :D
I've had to program with too many new acronyms and studly one-word
open-source projects this week and my brain hurts.
Dave
-
I'm sorry you're stuck, but speaking only for myself, your question was too
vague for me to even try to solve. If you show the complete before and
after versions of the tags you're talking about, and maybe a bit of Java/JSP
code that demonstrates the problem, I might paste it into my own project
Well said, Wendy. I often do the same - I've learned much more from
some of the questions on various forums than from books or tutorials.
Becky
On Tue, 2003-03-04 at 17:52, Wendy Smoak wrote:
I'm sorry you're stuck, but speaking only for myself, your question was too
vague for me to even try
:52 PM
To: 'Struts Users Mailing List'
Subject: RE: ExceptionHandler
I'm sorry you're stuck, but speaking only for myself, your question was too
vague for me to even try to solve. If you show the complete before and
after versions of the tags you're talking about, and maybe a bit of Java/JSP
code
Btw..here's an except of the error message i get :
- start of exception -
Error. The server encountered an unexpected condition which prevented it
from fulfilling the request.
java.lang.NoClassDefFoundError:
23 matches
Mail list logo