DWR使得在JAVA中使用Ajax更加简单和便捷。
DWR提供了AJAX remoting of JavaScript calls ,自动生成Javascript stubs,简洁的测试页面,远程调用Javascript的安全性,自动转换数据类型,一些和Spring的整合,等等。
1.0 的特性列表如下:
AJAX remoting of JavaScript calls to Java
Automatic generation of JavaScript stubs to match Java code.
Test pages allowing you to test and debug your server code.
Access controls through:
J2EE security including role based authorization
Declarative access rights at a method and parameter level
Automatic conversion of the following types:
All primitive types, String, Date (including SQL variants)
Arrays, Collections, Maps, Iterators
Document, Element etc from DOM, DOM4J, JDOM, and XOM
JavaBeans (nested and recursive trees supported) including beans from Hibernate
A large array of remoting options:
Batch sending of remote calls
Support for XMLHttpRequest & iframe with POST & GET
Optional call ordering guarantees
JavaScript library for HTML manipulation including:
Tables, ul, ol and select lists
Form fields including automatic form / JavaBean mapping
All general content types like p, h*, div, span, etc.
Spring integration:
Remote Spring beans
Configure DWR using Spring config files
Open Source (ASL Version 2)
官方站点:
http://getahead.ltd.uk/dwr
标签: