struts - global exception - dynamic path attribute?
Hi
In my struts (1.2.9) application I have this scenario:
<global-exceptions>
<exception type="cannotLockRecordException" path="/error.jsp"/>
</global-exceptions>
<action-mappings>
<action ......>
loads of action mappings ...
</action-mappings>
For the global exception stated I want to keep users on the JSP they are on instead of sending them to the error page. Rather than putting an exception element inside each action mapping for this 1 exception is it possible to dynamically create the global exception path attribute value so that the user is forwarded back to the JSP they came from?
ie.
<global-exceptions>
<exception type="cannotLockRecordException" path="/wherever the user was before they called the action"/>
</global-exceptions>
I doubt this is achievable, just wanted to check with you Gurus since Im not very experienced.
Thanks
Jon

