Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Accessing a session-scoped bean from dispatcher-servlet.xml in my views

  1. #11
    Join Date
    May 2011
    Posts
    8

    Default

    You're right, I accidentally imported org.springframework.web.portlet.handler.HandlerInt erceptorAdapter instead of org.springframework.web.servlet.handler.HandlerInt erceptorAdapter... d'oh. Still though, I'm seeing

    Code:
    [DEBUG] null
    and a breakpoint I put on

    Code:
    modelAndView.addObject("mySessionScopedBean", mySessionScopedBean);
    is never reached.

  2. #12
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    If it isn't reached then the interceptor isn't called. So that must be something in your configuration...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #13
    Join Date
    May 2011
    Posts
    8

    Default

    I figured it out by looking at some more examples and the Spring documentation. Thanks for your advice!

Tags for this Thread

Posting Permissions

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