I am attempting to create an ExceptionHandler action. Currently I have the following mapping:
<!-- global views -->
<action>
<view name="success">/WEB-INF/views/success.vm</view>
<view name="login">/WEB-INF/views/login.vm</view>
<view name="error">ExceptionHandler.action</view>
</action>
<action name="ExceptionHandlerAction" alias="ExceptionHandler">
<view
name="success">/WEB-INF/views/ExceptionHandler.vm</view>
</action>
<action name="ExceptionTriggerAction" alias="ExceptionTrigger">
<view
name="success">/WEB-INF/views/ExceptionTrigger.vm</view>
<view name="404">missing.txt</view>
</action>
In my ExceptionTriggerAction.doExecute() I am throwing an Exception.
The webwork.dispatcher.ServletDispatcher is executing the
ExceptionHandlerAction as I expected,
however, I wish to be able to get a refrence to
A) the exception object that was thrown
B) the action that threw the Exception
>From my ExceptionTriggerAction.
Is there any easy way to do this without hacking the
webwork.dispatcher.ServletDispatcher
Cameron Braid
Director
Datacodex Pty Ltd
[EMAIL PROTECTED]
http://www.datacodex.com
smime.p7s
Description: application/pkcs7-signature
