`
rolls19royce
  • 浏览: 17995 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

dwr原理

    博客分类:
  • dwr
阅读更多

Direct Web Remoting

dwr:WEB远程调用框架

 

DWR is a Java library that enables Java on the server and JavaScript in a browser to interact and call each other as simply as possible.

DWR是一个Java库,能够使服务器中Java与浏览器中JavaScript相互影响并简单地互调。

 

DWR is Easy Ajax for Java

DWR是简单的Ajax,相对Java而言。

 

DWR will generate the JavaScript to allow web browsers to securely call into Java code almost as if it was running locally. It can marshal virtually any data including collections, POJOs, XML and binary data like images and PDF files. All that is required is a security policy that defines what is allowed.

DWR会自动产生JavaScript,并允许网页浏览器安全地调用Java代码,几乎就像本地运行一样。它几乎能够整理任何数据包括集合,pojo,xml和二进制数据如图片、PDF文件。所有这些必须的是一个安全策略,即定义了什么是允许的。

 

With Reverse Ajax , DWR allows Java code running on a server to use client side APIs to publish updates to arbitrary groups of browsers. This allows interaction 2 ways - browser calling server and server calling browser . DWR supports Comet, Polling and Piggyback (sending data in with normal requests) as ways to publish to browsers.

利用反转Ajax,DWR允许运行在服务器上java代码使用客户端API来发布对任意组浏览器的更新。这里有两种交互方式-

浏览器调用服务器和服务器调用浏览器。DWR支持Comet(Comet 是一种新的 Web 应用架构), Polling and Piggyback(用正常请求发送数据)这些方式发布到浏览器。

 

DWR provides integration with Spring , Struts , Guice , Hibernate and others.

DWR提供了与 Spring , Struts , Guice , Hibernate及其他的整合。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics