官术网_书友最值得收藏!

Ease of Use

The main feature of DWR is its ease of use. DWR hides a lot of details from developers. This means that we can use AJAX functionality and we don't need to know about XmlHttpRequest for example, or how to send a Java object to a browser and so on. DWR has its own framework for performing the required marshaling/unmarshaling of Java objects to JavaScript and vice versa.

The setup for DWR consists of copying the dwr.jar file to the WEB-INF | lib directory in the application WAR file, and installing the application in the server before starting to use it. There are no special interfaces to implement in our own Java classes and it is even possible to develop a Java object completely transparently, so that the object doesn't know any DWR-specific classes. DWR provides well-documented APIs for us to use, and we can take advantage of it when developing, for example, Reverse AJAX applications.

And finally we can leverage the existing Java skills because DWR does not force us to replace the existing code, but instead lives side by side with non-AJAX applications and allows us to gradually change the required parts of an application to AJAX functionality.

主站蜘蛛池模板: 阿尔山市| 东乡| 葵青区| 土默特右旗| 通城县| 二连浩特市| 肇州县| 莒南县| 广丰县| 林口县| 离岛区| 晋江市| 石柱| 东明县| 赣榆县| 铜川市| 邹平县| 五常市| 泸西县| 桦南县| 青海省| 星子县| 普兰县| 灌云县| 大悟县| 浪卡子县| 涞水县| 原阳县| 兴业县| 尼勒克县| 谢通门县| 乌鲁木齐市| 乌兰察布市| 鸡西市| 抚松县| 固安县| 锡林郭勒盟| 阿巴嘎旗| 正蓝旗| 建昌县| 抚顺县|