Results 1 to 1 of 1

Thread: Problem DispatcherServlet Handling Rendering Exceptions

  1. #1
    Join Date
    May 2005
    Location
    SLC, UT, USA
    Posts
    7

    Default 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 at 07:22 PM.

Similar Threads

  1. Replies: 1
    Last Post: Aug 23rd, 2005, 11:25 AM
  2. Handling Controller Exceptions in a JSP
    By KBThakur in forum Web
    Replies: 4
    Last Post: Jun 10th, 2005, 04:14 PM
  3. Replies: 2
    Last Post: Mar 29th, 2005, 07:45 AM
  4. Handling exceptions thrown during initialization
    By tgullotta in forum Container
    Replies: 1
    Last Post: Mar 7th, 2005, 11:42 AM
  5. Replies: 2
    Last Post: Dec 20th, 2004, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •