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  非非是  阅读(1556)  评论(0编辑  收藏  举报