public class TestDWR { public String hello() { HttpSession httpSession = WebContextFactory.get().getSession(); System.out.println(httpSession.getAttribute("yanzhengma")); return "DWR配置成功!"; } }
DWR类中获取session
最新推荐文章于 2015-05-26 12:18:27 发布
public class TestDWR { public String hello() { HttpSession httpSession = WebContextFactory.get().getSession(); System.out.println(httpSession.getAttribute("yanzhengma")); return "DWR配置成功!"; } }