Exception Configuration Information
Exception mappings is a powerful feature for dealing with an Action class that throws an Exception. The core idea is that an Exception thrown during the Action method can be automatically caught and mapped to a predefined Result. This declarative strategy is especially useful for frameworks, like Hibernate and Acegi, that throw RuntimeExceptions. As with many other parts of the framework, an Interceptor is needed to activate the exception mapping functionality. Below is a snippet from struts-default.xml which has the exception mapping already activated. snippet of struts-default.xml ... < interceptors > ... < interceptor name = "exception" class = "com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor" /> ... </ interceptors > < interceptor-stack name = "defaultStack" > < interceptor-ref name = "exception" /...