aspose file tools*
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
Author

Spring Exception Handling

mnadeem chishti
Greenhorn

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
Greenhorn

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

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


here myError is the logical view name of the errorPage
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Exception Handling