struts.xml配置: <global-results> <!-- 下面定义的结果对所有的Action都有效 --> <result name="login" type="redirect">/login.jsp</result> <result name="exception">/common/exception.jsp</result> </global-results> <global-exception-mappings> <!-- 当系统抛出Exception异常时,转入名为exception的结果。 --> <exception-mapping exception="java.lang.Exception" result="exception" /> </global-exception-mappings> 这么一来,Action中只要出Exception则将会转到/common/exception.jsp去.