Announcement Announcement Module
Collapse
No announcement yet.
Problem DispatcherServlet Handling Rendering Exceptions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem DispatcherServlet Handling Rendering Exceptions

    I have an XSLT view that throws an exception that is not caught by either the SimpleMappingExceptionResolver or my own HandlerExceptionResolver. As mentioned by bacota in this post (http://forum.springframework.org/showthread.php?t=18225)
    why doesn't the dispatcher handle this like it does within the controller?

    Currently in Tomcat 5.5 any exception that occurs within the render method blows all the way to the top of the application container. Even putting in an error page entry into web.xml that covers java.lang.Throwable doesn't handle it.

    Short of handling the exception inside the view.render method or putting the view code into the controller how is it recommended to handle / provide an error page for exceptions that occur within the rendering method?

    Thanks. Garth.
    Last edited by robyn; May 14th, 2006, 08:22 PM.
Working...
X