Re: struts 2 session question

2013-05-08 Thread Dave Newton
Personally, I'd use SessionAware and reduce coupling even further. The docs for both methods should answer this question fairly completely. The session is exposed as a map in S2, and as a servlet spec artifact in S1. Dave On Wed, May 8, 2013 at 12:15 PM, john lee wrote: > > for stuts 1, to

struts 2 session question

2013-05-08 Thread john lee
  for stuts 1, to get session, via the following     session=request.getSession();   session.setAttribute("PERSON", person);    /* person is object name */   for struts 2, to get session, via the following     Map session=ActionContext.getContext().getSession();   session.put("PERSO