This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC: Handling exceptions from view

sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • 0
  • 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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic