<default-action-ref name="error"></default-action-ref>
<global-exception-mappings>
<!-- 指Action抛出SysRuntimeException异常时,转入名为exception的结果。
<exception-mapping
exception="cn.yicha.core.common.exception.SysRuntimeException"
result="exception" />-->
<!-- 指Action抛出Exception异常时,转入名为exception的结果。-->
<exception-mapping exception="java.lang.Exception"
result="exception" />
</global-exception-mappings>
<action name="error">
<result name="error">
/errors/error.jsp
</result>
</action>