action中session的存取

ActionContext.getContext().getSession().put("teacherlist", teacherlist);

teacherlist=(List<Teacher>) ActionContext.getContext().getSession().get("teacherlist");

清除

ActionContext.getContext().getSession().clear();

  

原文地址:https://www.cnblogs.com/feifeishi/p/6541237.html