title: Spring MVC Session Attribute Access
body: <p>Is there any way under spring 3.0 to access the HttpSession without including it in the method signature? What I really want to do is be able to pass in values from an HttpSession that CAN BE null.</p>
  
  <p>Something like this:</p>
  
  <pre><code>@RequestMapping("/myHomePage")
  public ModelAndView show(UserSecurityContext ctx) {}
  </code></pre>
  
  <p>instead of this:</p>
  
  <pre><code>@RequestMapping("/myHomePage")
  public ModelAndView show(HttpSession session) {
        UserSecurityContext ctx = (UserSecurityContext) session.getAttribute("userSecurityCtx");
  }
  </code></pre>