The subtle relationship between DWR and Ajax

Source: Internet
Author: User

DWR (Direct Web Remoting) is a remote server-side Ajax Open-source framework for improving the interaction of Web pages with Java classes, which can help developers develop Web site for AJAX technology. It allows the code in the browser to use JAVA functions that run on the WEB server as if it were in the browser.

DRW ajax,ajax is just one of the most primitive implementations as if servlet, but dwr as if struts,hibernate frame encapsulates a lot of things actually the bottom implementation principle is the same is used xmlhttprequest to achieve the In addition, it is by calling a function or callback function to wear the parameter

Dwr (Direct web Remoting) is a Java Open Source Library that allows you to create a ajaxweb site, which allows JavaScript in your browser The code calls the Java code on the Web server as if the Java Code were in the browser

Dwr The advantage is that you do not need any web browser plugin to run on the Web page.

Dwr it works by dynamically turning Java classes into JavaScript, and its code is like Ajax , and you feel like the invocation is happening on the browser side, but actually the code call takes place on the server side, DWR is responsible for data transfer and transformation



Some examples of manual work: HTTP://PAN.BAIDU.COM/S/1KT8AUD5

ajax " asynchronous Javascript and XML " (async javascript and xml ) refers to a web development technique that creates interactive Web applications. The core of ajax is JavaScript object XMLHttpRequest . This object was first introduced in , a technique that supports asynchronous requests. In short, xmlhttprequest allows you to make requests to the server using to process the response without blocking the user.

Ajax Advantage:AJAX uses asynchronous data transfer (HTTP request) between the browser and the Web server, which allows the Web page to request a small amount of information from the server, rather than the entire page. AJAX can make Internet applications smaller, faster, and friendlier.

The connections and differences between them:

DWRis based onAjaxOpen source of technologyJavatechnology framework that savesJavaEnd andJSA lot of repetitive work on the end, for complex business volumes andAjaxBusiness recommendation selection for interactive access to dataDwrTechnology, enterprise-class projects, and for only a small partAjaxthe business of interacting is still using the nativeAjaxTechnology package Under the request can be, Internet products more suitable, such as most code most of the pages are back-end direct returnHTML, only a few, such as a comment list, areAjax, usingjqueryof theAjaxmethod, the large and complexDwr.




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The subtle relationship between DWR and Ajax

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.