action中session的存取

存

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

取

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

清除

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

  

posted @ 2017-03-13 09:30  非非是  阅读(1583)  评论(0)    收藏  举报