File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Spring Exception Handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring Exception Handling" Watch "Spring Exception Handling" New topic

Spring Exception Handling

mnadeem chishti

Joined: Aug 07, 2006
Posts: 11
Hi All,

I am using Spring framework to develop my webapplicaiton. As exception is thrown in my controllers my application gets crashed and there is white page is displayed. I want to configure some error page on application level which must be displayed whatever and whereever the exception is thrown on back.
please can i have some idea ???
tanvir alam

Joined: Oct 23, 2008
Posts: 1
use the following bean..

<bean id="exceptionResolver" class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<property name="exceptionMappings">
<prop key="java.lang.Exception">myError</prop>

here myError is the logical view name of the errorPage
jQuery in Action, 2nd edition
subject: Spring Exception Handling