ooops, thank you regarding the java.lang.Exception.  As for ExceptionCatcher
all that is correct.  I did make that change in an earlier iteration.  That
lowercase wasn't the issue sadly.  Now, when I installed Easy Struts just
now it told me "path not found in webapp" which is not true from my
perspective.  "/jsp/error.jsp" exists and all the other calls from struts
config use the "/jsp/*.jsp" format and work properly.  Has anyone out there
had an experience like this with exception handling?
----- Original Message ----- 
From: "Nick Wesselman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 10:04 AM
Subject: Re: Exception handling in struts


> Didn't someone already answer this for you? Maybe we need to be more
> explicit. Try this:
>
> <global-exceptions>
>
> <exception
>
> key="uncaught_exception"
>
> type="java.lang.Exception"
>
> path="/jsp/error.jsp"
>
> handler="com.graysail.pgbadmecs.exceptions.ExceptionCatcher"
>
> scope="request"/>
>
> </global-exceptions>
>
>
> "Exception" needs to be upper case. If your ExceptionCatcher really is
> called exceptioncatcher (all lower case), then keep your handler line
> the same.
>
> Nick
>
>
> Tate Austin wrote:
>
> >I'm trying to write an exception handler in my struts-config to clean up
my application's exception behavior.  Well, I've followed the directions in
the docs to a T, I have this entry in my struts config:
> >
> ><global-exceptions>
> >
> ><exception
> >
> >key="uncaught_exception"
> >
> >type="java.lang.exception"
> >
> >path="/jsp/error.jsp"
> >
> >handler="com.graysail.pgbadmecs.exceptions.exceptioncatcher"
> >
> >scope="request"/>
> >
> ></global-exceptions>
> >
> >
> >
> >my exception catcher extends GlobalExceptionHandler and bears an
execute() method.  Well, when an error of type exception goes off, the
catcher is never called to it?  What ingredient am I missing?
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to