Access exception.class.name in spring:message tag when using SimpleMappingExceptionResolver
问题 In several previous projects (all pre-Spring 3.0), I had a single error handling jsp file (usually "message.jsp") that had a line similar to the following: <spring:message code="exceptions.${exception.class.name}" text="${exception.message}"/> This allowed me to map exceptions to this page and resolve certain localized error messages based on the exception type by defining a derivative of the SimpleMappingExceptionResolver: <bean id="exceptionMapping" class="mycode.ui.resolvers