scranjith
Mar 9th, 2012, 04:52 PM
Hi,
I am using Spring MVC, AjaxUrlBasedViewResolver, Spring-js (Spring.AjaxEventDecoration) is my application.
I have also used InternalResourceViewResolver in few screens.
I need to configure a centralized Exception Resolver.
<bean class="org.springframework.web.servlet.handler.SimpleMapp ingExceptionResolver">
<property name="exceptionMappings">
<props>
<prop key="com.nbcu.common.exception.AddressBookException">error</prop>
<prop key="java.lang.Exception">error</prop>
</props>
</property>
</bean>
The above config works fine for InternalResourceViewResolver.
But while using AjaxUrlBasedViewResolver the error page rendering is not as desirable (the exception message overlaps the existing tiles html page).
Please suggest a better solution to handle exception while using AjaxUrlBasedViewResolver.
I am using Spring MVC, AjaxUrlBasedViewResolver, Spring-js (Spring.AjaxEventDecoration) is my application.
I have also used InternalResourceViewResolver in few screens.
I need to configure a centralized Exception Resolver.
<bean class="org.springframework.web.servlet.handler.SimpleMapp ingExceptionResolver">
<property name="exceptionMappings">
<props>
<prop key="com.nbcu.common.exception.AddressBookException">error</prop>
<prop key="java.lang.Exception">error</prop>
</props>
</property>
</bean>
The above config works fine for InternalResourceViewResolver.
But while using AjaxUrlBasedViewResolver the error page rendering is not as desirable (the exception message overlaps the existing tiles html page).
Please suggest a better solution to handle exception while using AjaxUrlBasedViewResolver.