• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC: Handling exceptions from view

sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic