Discussions

Web tier: servlets, JSP, Web frameworks: Spring MVC: How to Handle exceptions thrown when rendering view

  1. May any one tell me how to handle exceptions thrown when rendering the view? I have an excelview[extends AbstractExcelView] 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 display the message to the user. HandlerExceptionResolver dont resolve exception thrown from views. Is there any thing similar to 'HandlerExceptionResolver' which may be used? or any other alternative ? Any idea? jsptube
  2. you can check in the spring tutorial http://www.techfaq360.com/tutorial/spring/spring.jsp