title: Handling session with Struts 2 and Spring security 3
body: <p>I am trying to integrate Struts 2 and Spring security 3.
  I don't understand how to handle session, with both.Is there a standard way?</p>
  
  <p>I know of struts session built in session handling, ActionContext</p>
  
  <p>eg</p>
  
  <pre><code>Map session = ActionContext.getContext().getSession();
  session.put("userIdx","xxxxx");
  </code></pre>
  
  <p>But not how to use spring security along with it.</p>
  
  <p>There are lots of Spring MVC tutorials on using Spring Security 3, 
  but not a lot on Struts 2 and Spring Security 3. 
  Do you know of any good tutorials? 
  Or would I be better using Spring MVC? </p>