AJAX with DWR

The DWR (Direct Web Remoting) project is an open source solution under the Apache license for the developer who wants to use AJAX (Asynchronous JavaScript and XML) and XMLHttpRequest in an easy way. DWR helps you keep focused on how to improve your application’s interaction model, removing the burden that comes with coding and debugging JavaScript code. The most interesting challenge of using AJAX is defining where and how to improve usability. DWR helps you focus totally on how to make your application more user-friendly by handling the communication between the Webpage and your Java objects.

DWR consists of two main parts:

  • A Java Servlet running on the server that processes requests and sends responses back to the browser.
  • JavaScript running in the browser that sends requests and can dynamically update the webpage.

DWR works by dynamically generating Javascript based on Java classes. The code does some Ajax magic to make it feel like the execution is happening on the browser, but in reality the server is executing the code and DWR is marshalling the data back and forwards.

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.

For More Info, go to www.directwebremoting.org

The DWR (Direct Web Remoting) project is an open source solution under the Apache license for the developer who wants to use AJAX (Asynchronous JavaScript and XML) and XMLHttpRequest in an easy way. DWR helps you keep focused on how to improve your application’s interaction model, removing the burden that comes with coding and debugging…

Leave a Reply

Your email address will not be published. Required fields are marked *