我有动作级别的本地异常映射和全局异常映射,其中异常类型相同 - 那么无论执行全局异常还是本地异常,哪一个将具有高优先级?
<action name="User_save" class="">
<exception-mapping exception="java.sql.SQLException"
result="error"/>
<result name="error">/jsp/Error.jsp</result>
<result>/jsp/Thanks.jsp</result>
</action>
<global-results>
<result name="error">/jsp/Error.jsp</result>
<result name="sqlError">/jsp/SQLError.jsp</result>
</global-results>
<global-exception-mappings>
<exception-mapping exception="java.sql.SQLException"
result="error"/>