ActionContext is just a wrap class for convenience.
If you need the real HttpSession. You should get the HttpRequest first, from ServletActionContext.getRequest(). See: http://struts.apache.org/2.2.1/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html And then, you can get the HttpSession from HttpServletRequest.getSession(); See: http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html 2010/12/2 maven apache <[email protected]>: > Thanks,your answer can not be detailed more. :) > > only a little confused. > > Map attibutes = ActionContext.getContext().getSession() > > I can get the session this manner,but it seems that it is a Map,not a > HttpSession,so what is the id? > > I have debug the session yet,and I found there is a property in the Map: > struts.troken,is this unique can be used as the session id? > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

