|
From: Boyce, K. G. <Kei...@bc...> - 2005-11-15 21:18:08
|
This is exactly what I am experiencing with the following thread. > Yes the exception resolver allows you to resolve exception to view but > there is no current way I found to apply interceptor to it. > I need a way to have code run after exception is raised from mvc=0D > handler basically to do some stuff before and after the exception view > is displayed. Is that something that can be added to framework.=0D > Basically I need some code to run in order to prepare the error view=0D > and after the view is displayed I need to clean up some information=0D > including possibly the exception so in the case of portlet mvc the=0D > next time the view is rendered I want it to display the view from the=0D > default handler rather than the exception again which is what is currently happening.=0D -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Tim Kettering Sent: Tuesday, November 15, 2005 3:32 PM To: spr...@li... Subject: [Springframework-developer] HandlerExceptionResolver not catching taglib exceptions? I'm doing some work with the spring-portlet MVC in our current project, and one thing I ran across recently is that apparently the HandlerExceptionResolver on the portlet side does not catch Exceptions thrown from a taglib (a custom taglib for example). I've tested this out by issuing the same exception from inside the handler itself, which was caught as expected, but throwing that exception from a taglib itself is not caught. So it seems that the HandlerExceptionResolver does not handle exceptions that are issued after the flow of control is handed over to the view phase. I e-mailed John Lewis about this, and he said he thinks this is how it also performs on the servlet-MVC side as well. Since we do not have any servlet-MVC code here, I thought I'd ask on the list to see if this is indeed true as well. If so, what would be the correct way to handle exceptions issued by taglibs, using spring MVC? =0D Thanks! -tim ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer This message is a PRIVATE communication. If you are not the intended recipient, please do not read, copy, or use it, and do not disclose it to others. Please notify the sender of the delivery error by replying to this message, and then delete it from your system. Thank you. |