I have a Spring MVC app that uses JSP to render pages. Spring has a built-in concept of Interceptors that go off before and after the controllers are invoked, but the postHandle() call still happens before the actual rendering of the view. I have some cleanup that I want to do AFTER the JSP page completes its rendering. Is there any built-in place I can put that without resorting to adding Tomcat interceptors? I like my nice, contained Spring app.
Share
use
HandlerInterceptor.afterCompletion()that is triggered after view rendering.(but ony if
HandlerIntercpetor.preHandle()was sucefully completed and returnedtrue)