You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith Bottner <kb...@comcast.net> on 2004/08/24 12:42:36 UTC
Exception Handler Help!
Configuration of global exceptions looks very simple. So I cannot understand
why the configuration of my global-exception refuses to pick up any
exceptions. If an error occurs I just get the blank white page. Here is my
global-exception configuration section.
<global-exceptions>
<exception key="exception.application" path="errors"
type="java.lang.Exception" /> </global-exceptions>
Then I have a global-forward that looks like this
<forward name="errors" path="/errors.do" />
I tried specifying /errors.do as the path for the global-exception and that
did not work either. Any ideas on why Exceptions may not be getting routed?
Thanks,
Keith
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Exception Handler Help!
Posted by Keith Bottner <kb...@comcast.net>.
errors.do is an action mapping.
But your question made me take a second look at something. It appears that
the exception was getting caught and turned into an ActionError in a base
class and therefore never thrown outside the servlet, which of course
prevents it from using the global-exception. If I do remove this
functionality then the global-exception does work in all cases, whether
HTML, jsp or an action mapping (for those of you who are interested).
So thanks for all the help guys, the questions spawned the right thought
processes to track it down. I should have seen this sooner but 18hours
looking at the screen must have got to me, now to sleep.
Thanks again,
Keith
-----Original Message-----
From: Jitender K Chukkavenkata [mailto:jchukkav@in.ibm.com]
Sent: Tuesday, August 24, 2004 7:49 AM
To: Struts Users Mailing List
Subject: Re: Exception Handler Help!
Hei Keith,
Could you be little detail regarding struts-config.xml...what is
errors.do??
Jitender Kumar C.V.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Exception Handler Help!
Posted by Jitender K Chukkavenkata <jc...@in.ibm.com>.
Hei Keith,
Could you be little detail regarding struts-config.xml...what is
errors.do??
Jitender Kumar C.V.