|
From: Tim K. <tim...@vi...> - 2005-11-15 20:31:51
|
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? Thanks! -tim |