标签:blog http ext get string art
http://blog.csdn.net/finelife/article/details/1608632
1.写入session
Object sessionName = "name";
Object sessionValue = "value";
HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
session.setAttribute(sessionName,sessionValue);
2.获取session值
String getName = session.getAttribute("name").toString();
3.清除session
session.invalidate();
标签:blog http ext get string art
原文地址:http://www.cnblogs.com/j3eee/p/3785603.html