1.customizer.diconhtml
<component name="actionCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> </component>
<initMethod name="addAspectCustomizer"> <arg>"throwableTransitionInterceptor"</arg> </initMethod>
2.ThrowableTransitionInterceptor(本身寫的類繼承ThrowsInterceptor)類中追加java
public void handleThrowable(TestException e, MethodInvocation invocation) throws Throwable { throw e; }
3.定義自定Exception -->>TestException繼承RuntimeException類code
4.struts-config.xmlcomponent
<global-exceptions> </global-exceptions>
<exception type="framework.ss.exception.runtime.TestException" path="/WEB-INF/view/exception/testException.html" key=""/>