Sep 25th, 2007, 07:16 PM
Injecting Advice into DispatchServlet...
I want to inject a MethodInterceptor into DispatchServlet so that I can wrap the whole of the doGet method. I use Controllers derived from AbstractCommandController and was about to inject a MethodInterceptor into the handleReqeust method. But the problem is that View.render gets called by DispatchServlet after returning from the handleRequest method and I want the call to my View render method to be within the scope of the MethodInterceptor. I can't see any other place to inject that is a bean.
Sep 25th, 2007, 10:35 PM
Have a look at handler mapping and interceptors. They provide a way that includes the view.