Announcement Announcement Module
Collapse
No announcement yet.
Injecting Advice into DispatchServlet... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    Have a look at handler mapping and interceptors. They provide a way that includes the view.

    Joerg

    Comment

    Working...
    X