I think I've followed the instructions at [1] closely, and ended up with
this in my struts.xml:

<struts>    <package name="mypackage" extends="struts-default">
<interceptors>            <interceptor name="exception"
class="com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor"/>
<interceptor-stack name="defaultStack">                <interceptor-ref
name="exception"/>            </interceptor-stack>        </interceptors>
<global-exception-mappings>            <exception-mapping
exception="java.lang.Exception" result="Exception"/>
</global-exception-mappings>    </package> </struts>

I have no <action>s defined in struts.xml because I'm using annotations for
action configuration. Is this setup incompatible with global exception
mappings? I didn't see anything obvious in the annotations documentation
about exception handling.

Thanks,
- d


[1] http://struts.apache.org/2.0.11.1/docs/exception-configuration.html

Reply via email to