随笔分类 -  DWR

摘要:原文出处:http://www.kankanews.com/ICkengine/archives/82552.shtml在DWR中,我们可以通过WebContextFactory.get()来取得一个WebContext对象,进而通过WebContext的getScriptSession()取得ScriptSession对象。但是要注意,在我们自定义的Servlet中,我们也可以通过WebContextFactory.get()来取得一个WebContext,但是这种方法却不能取得ScriptSession对象。因为,此WebContext对象其实不是通过DWR的上下文环境得到的,所以,就根本 阅读全文
posted @ 2014-03-26 10:09 叶汉城 阅读(1031) 评论(1) 推荐(0)
摘要:引自:http://caizhenyao.iteye.com/blog/1747218DWR2.x的推技术也叫DWR Reverse Ajax(逆向Ajax)主要是在BS架构中,从服务器端向多个浏览器主动推数据的一种技术。在DWR所开的线程中使用Reverse Ajax时,通过WebContextFactory.get()获取WebContext对象,进而获取脚本Session。在DWR之外使用Reverse Ajax时,就要用到ServerContext,在Spring环境中要得到ServerContext,就需要用到Spring的ServletContextAware接口。一、Revers 阅读全文
posted @ 2014-03-05 12:00 叶汉城 阅读(2485) 评论(1) 推荐(0)