|
From: Boyce, K. G. <Kei...@bc...> - 2005-11-15 23:37:27
|
But that's the whole deal about the exception resolver. We configure the interceptors for a particular handler to handle particular use cases and we need someway to to intercept just that.. Isn't there a way we can implement the interceptor concept for exceptions. -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Seth Ladd Sent: Tuesday, November 15, 2005 5:34 PM To: spr...@li... Subject: Re: [Springframework-developer] HandlerExceptionResolver not catching taglib exceptions? > If so, what would be the correct way to handle exceptions issued by=0D > taglibs, using spring MVC? You're right, in that if the exception is thrown from the view layer, the handler interceptors won't be invoked. Those interceptors only apply to the handlers (controllers). If the exception is thrown from a view, you can either use Spring's exception resolving, or the web.xml's exception mapping. By this point, the handler is out of the picture. You could wrap the whole thing in a filter, which would be able to catch the exceptions thrown from a view. Seth ------------------------------------------------------- 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_idv28&alloc_id=16845&op=3Dick _______________________________________________ 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. |