j2EE 分层模式中的异常架构设计
<exception-mapping exception="java.lang.Exception" result="dataAccessFailure"/>
</global-exception-mappings>
?
2,单个处理
?????????
???????? <action name="users" method="list">
???? <interceptor-ref name="adminCheck"/>
???? <result name="success">/WEB-INF/pages/admin/userList.jsp</result>
???? <result name="failure">/WEB-INF/pages/admin/error.jsp</result>
???? <exception-mapping exception="java.lang.Exception" result="failure"/>
?
</action>
?
4,容器处理
?????
????????? <error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
?
http://hi.baidu.com/webcell/blog/item/1b87f0196f954c71dbb4bd14.html