struts 2 global-exception-mappings for HTTP error codes
Is it possible to handle the error pages which defined in web.xml, as the
global-exception-mappings in struts 2 actions. For example, instead of
<error-page>
<error-code>404</error-code>
<location>/common/jsp/FilkeNotFine.jsp</location>
</error-page>
Define something like below:
<global-exception-mppings>
<exception-mapping ErrorCode="404" result="internernal-error" />
</global-exception-mppings>
Are there any plugin or interceptor that can do that?
No comments:
Post a Comment