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

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.

主站蜘蛛池模板: 荔波县| 乌拉特后旗| 民权县| 株洲县| 蓬莱市| 高安市| 满城县| 濮阳县| 平顺县| 绩溪县| 德保县| 闸北区| 辽阳市| 江川县| 垦利县| 财经| 辉南县| 黄浦区| 安泽县| 缙云县| 京山县| 永丰县| 庐江县| 垣曲县| 奉节县| 沙洋县| 临江市| 中江县| 金山区| 来凤县| 奉贤区| 买车| 尼木县| 陇川县| 曲沃县| 渑池县| 广安市| 新宾| 恭城| 时尚| 吉木乃县|