aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring MVC: Handling exceptions from view 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 MVC: Handling exceptions from view" Watch "Spring MVC: Handling exceptions from view" New topic
Author

Spring MVC: Handling exceptions from view

sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

May any one tell me how to handle exceptions thrown when rendering the view?

I have an excelview which may throw exception during getTemplateSource() [this method overrides the super class method] if the file is invalid. This is a framework called template method. whenever the exception is thrown, stack trace is displayed on page.

I want to handle the exception and render another view if any exception is thrown when rendering the view.

IS there any thing similar to 'HandlerExceptionResolver' which may be used?

Any idea?


[Servlet tutorial] [Servlet 3.0 Cook Book]
 
 
subject: Spring MVC: Handling exceptions from view