67,513
社区成员
发帖
与我相关
我的任务
分享
<!--所有需要用到全局异常的package都需要继承globalException-->
<package name="globalException" extends="struts-default">
<!-- 此处定义所有的全局异常映射返回结果 -->
<global-results>
<result name="error">/erroreException.jsp</result>
</global-results>
<!-- 此处定义所有的全局异常映射 -->
<global-exception-mappings>
<exception-mapping
exception="com.errors.SaveException" result="error" />
<exception-mapping
exception="com.errors.ModifyException" result="error" />
<exception-mapping
exception="com.errors.LoginErrorException" result="error" />
</global-