
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
1.
500page.jsp (1 kB)
|
|
Issue Links:
|
Related
|
|
|
|
This issue is related to:
|
|
WW-598
Add ability to map exceptions to pages (or actions)
|
|
|
|
|
|
|
|
It would ne nice that XWork can handle exceptions, something like :
Something like :
<global-exception type="mypack.ApplicationException" action="myExceptionHandlerAction"/>
that could redirect exceptions inherited from mypack.ApplicationException to the myExceptionHandlerAction
action.
Maybe even with a configurable result type.
|
|
Description
|
It would ne nice that XWork can handle exceptions, something like :
Something like :
<global-exception type="mypack.ApplicationException" action="myExceptionHandlerAction"/>
that could redirect exceptions inherited from mypack.ApplicationException to the myExceptionHandlerAction
action.
Maybe even with a configurable result type.
|
Show » |
|
1. add the following to xwork.xml
<global-results>
<result name="error">/500page.jsp</result>
</global-results>
2. add the following to WEB-INF/web.xml
<error-page>
<error-code>500</error-code>
<location>/500page.jsp</location>
</error-page>
3. add the attached error page to your web-app root directory