如题?
怎么获得sessionid呢?
------解决方案--------------------------------------------------------
SessionAware应该是interface
实现这个接口可以方便得到Session
sessionId的话一般可以:
- Java code
ActionContext ct= ActionContext.getContext();HttpServletRequest request = (HttpServletRequest)ct.get(ServletActionContext.HTTP_REQUEST);String id = request.getSession().getId();