-
Sep 25th, 2007, 07:16 PM
#1
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
#2
Have a look at handler mapping and interceptors. They provide a way that includes the view.
Joerg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules