看一下代码马上就明白了,.只要保证已经引入了dwr的包.
HttpSession session = WebContextFactory.get().getSession();
HttpServletResponse response = WebContextFactory.get().getHttpServletResponse();
HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();