---
title: "DWR 中文文档"
author: "flyingis"
date: "2006-11-18T09:15:00Z"
tags: []
slug: "dwr"
draft: false
lastmod: "2006-11-18T09:15:00Z"
id: 58482
url: "https://webgis.iteye.com/blog/58482"
---

DWR is Easy Ajax for Java.

DWR能够像调用本地方法一样直接从JavaScript调用Java方法，它适用于一些常见的Java Web框架，如Spring、Struts、Tapestry等。关于DWR的学习与讨论，建议参考zkjbeyond的文章《[DWR学习](http://www.iteye.com/topic/16424)》和《[挖掘DWR](http://www.iteye.com/topic/24343)》。

我是DWR初学者，虽然DWR入门简单，但还是想尝试翻译一下DWR的部分文档，翻译过程中自己会有更多的思考，翻译的方式采用中英文对照，翻译的文字不会完全和英文一一对照，主要是为了在不失原意的情况下保证中文的阅读理解习惯，当然，翻译的过程需要大家的支持，翻译不妥的地方尽请拍砖、指正。

Jet Mah已经开始翻译DWR文档（[DWR文档中文化](http://www.javatang.com/dwr-chinese-documents/)），我将在他未翻译的文档中摘取比较重要的章节进行翻译，也算是对开源尽一点绵薄之力。我已翻译的部分在[Java Tang](http://www.javatang.com/)中也会留言给出链接。

文档目录结构（包含Jet Mah和flyingis的翻译，在[flyingis博客](/flyingis/)中置顶）

[DWR总览](http://www.javatang.com/archives/2006/10/19/301977.html)（Overview of DWR）  
[开始使用DWR](http://www.javatang.com/archives/2006/10/20/254879.html)（Getting Started）  
[范例](http://www.javatang.com/archives/2006/10/23/153481.html)（Samples）  
[网络上的资料](http://www.javatang.com/archives/2006/10/24/424782.html)（Tutorials From Around the Web）  
技巧和要点（Hints and Tips）  
常见问题及解答（Solving Common Problems）  
[WEB-INF参考](/flyingis/archive/2006/11/18/81898.html)（WEB-INF Reference）  
dwr.xml  
Annotations  
Generated Documentation  
Scripting Introduction  
engine.js  
[util.js](http://www.javatang.com/archives/2006/04/26/261321.html)  
Ajax Documentation  
Error Handling  
Integration  
Passing extra data to callbacks  
Reading from other URLs  
Related Projects  
Security  
Browser Support  
Support Enviroments  
Changelog  
Upgrading DWR  
Development