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]



Reply via email to