SSI项目全局异常不跳转问题
小弟用SSI开发Demo工程,遇到全局异常不跳转的问题,各位大虾帮忙看看是神马问题:
struts.xml:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts> <!-- 公共配置信息 --> <package name="common" extends="json-default"> <interceptors> <interceptor name="authority" class="com.greenbird.bbs.common.interceptor.AuthorityInterceptor"> </interceptor> <interceptor-stack name="myStack"> <interceptor-ref name="authority" /> <interceptor-ref name="timer"/> <interceptor-ref name="params"/> <interceptor-ref name="defaultStack" /> </interceptor-stack> </interceptors> <default-interceptor-ref name="myStack" /> <!-- 全局跳转页面--> <global-results> <result name="RoleError">/pages/error/roleError.jsp</result> <result name="Login">/index.jsp</result> <result name="Error" type="redirect">/error.html</result> </global-results> <!-- 全局异常跳转 --> <global-exception-mappings> <exception-mapping result="Error" exception="com.greenbird.bbs.common.exception.BaseException"/> <exception-mapping result="Error" exception="java.lang.Exception"/> </global-exception-mappings> </package> <!-- ========== include struts XML ================================== --> <include file="struts/*/*-config.xml" /></struts>