Results 1 to 2 of 2

Thread: Injecting Advice into DispatchServlet...

  1. #1

    Default 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. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

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

    Joerg
    This post can contain insufficient information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •