Struts2中获取sessionid

Struts2
jdk1.8

HttpServletRequest request = ServletActionContext.getRequest();
String sessID = request.getSession().getId();