看一下代码马上就明白了,.只要保证已经引入了dwr的包.
HttpSession session = WebContextFactory.get().getSession();
HttpServletResponse response = WebContextFactory.get().getHttpServletResponse();
HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
获取Web上下文对象
本文介绍了如何通过WebContextFactory获取HTTP会话、响应及请求等关键Web上下文对象,为Web应用开发提供便利。
看一下代码马上就明白了,.只要保证已经引入了dwr的包.
HttpSession session = WebContextFactory.get().getSession();
HttpServletResponse response = WebContextFactory.get().getHttpServletResponse();
HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();

被折叠的 条评论
为什么被折叠?