在dwr中取session,request,response

今天需要在dwr中取session,就找到了这个,感谢作者的分享

原链接:http://zmfkplj.iteye.com/blog/249489

 

/** 在dwr中取session,request,response */
WebContext webContext = WebContextFactory.get(); 
HttpSession session = webContext.getSession();
HttpServletRequest request=webContext.getHttpServletRequest();
HttpServletResponse response=webContext.getHttpServletResponse();

你可能感兴趣的:(Blog,DWR)