1. 程式人生 > >struts2中獲取 seesion與sessionId

struts2中獲取 seesion與sessionId

Map<String, Object> ss = ActionContext.getContext().getSession();

String str = ServletActionContext.getRequest().getSession().getId();

System.out.println("------113---------"+str);