GO-V.ORG
As seen in

Direct Web Remoting

Direct Web Remoting, or DWR, is a Java open-source library that helps developers write web sites that include Ajax technology.[src] It allows code in a web browser to use Java functions running on a web server as if those functions were within the browser.[src] The DWR project was started by Joe Walker in 2004, 1.0 released at August 29, 2005.[src]

Direct Web Remoting, or DWR, is a Java open-source library that helps developers write web sites that include Ajax technology.[src] It allows code in a web browser to use Java functions running on a web server as if those functions were within the browser.[src] The DWR project was started by Joe Walker in 2004, 1.0 released at August 29, 2005.[src] ==Application== Code to allow JavaScript to retrieve data from a servlet-based web server using Ajax principles.[src] A JavaScript library that makes it easier for the website developer to dynamically update the web page with the retrieved data.[src] DWR takes a novel approach to Ajax by dynamically generating JavaScript code based on Java classes.[src] Thus the web developer can use Java code from JavaScript as if it were local to the web browser; whereas in reality the Java code runs in the web server and has full access to web server resources.[src] For security reasons the web developer must configure exactly which Java classes are safe to export (which is often called web.xml or dwr.xml).[src] This method of remoting functions from Java to JavaScript gives DWR users a feel much like conventional RPC mechanisms like RMI or SOAP, with the benefit that it runs over the web without requiring web browser plug-ins.[src] DWR does not consider the web browser / web server protocol to be important, and prefers to ensure that the programmer's interface is natural.[src] The greatest challenge to this is to marry the asynchronous nature of Ajax with the synchronous nature of normal Java method calls.[src] In the asynchronous model, result data is only available some time after the initial call is made.[src] DWR solves this problem by allowing the web developer to specify a function to be called when the data is returned using an extra method parameter.[src] This extra method is called CallBack Method.[src] The value returned from the java function will be passed to the callback method.[src] Here is a sample Callback: MJavaClassOnJs.getListProducts(selectedCategory, { callback: function(returnedList) { dwr.util.addOptions(myComboId, returnedList, "productId", "productName") } }) The callback is that function inside the JSON object passed as an additional parameter to the remoted function.[src] With version 2.0, DWR supports Comet (also called "Reverse Ajax) where Java code running on the server can deliberately send dedicated JavaScript to a browser.[src] ==References== ==Bibliography== ==External links==[src]

21 sentences · 21 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Direct Web Remoting." encyclopegia.org, 2026, https://encyclopegia.org/wiki/direct-web-remoting. Accessed 02 December 2026.

Chicago

"Direct Web Remoting." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/direct-web-remoting.

APA

encyclopegia.org. (2026). Direct Web Remoting. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/direct-web-remoting

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date2005-08-29Wikipedia
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1331404919 · 0.5 · snapshot enwiki-001331404919

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.