将对象放入session:
ActionContext.getContext().getSession().put("stu_id",id);
将session值取出来使用:
Integer id = (Integer) ActionContext.getContext().getSession().get("stu_id");
|
将对象放入session: ActionContext.getContext().getSession().put("stu_id",id); 将session值取出来使用: Integer id = (Integer) ActionContext.getContext().getSession().get("stu_id");
|