session值的使用

时间:2014-05-09 09:21:33   收藏:0   阅读:236

将对象放入session:

    ActionContext.getContext().getSession().put("stu_id",id);

将session值取出来使用:

    Integer id = (Integer) ActionContext.getContext().getSession().get("stu_id");

session值的使用,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!