

It fits well in any application that runs in a servlet framework. It handles parameters of different types and helps keep the HTML code readable.ĭWR is not intrusive to one's design, as it does not force any sort of inheritance architecture for objects to be exposed. It has a set of JavaScript functions that remove the complexity from calling methods in a Java object running on the application server from the HTML page. The DWR (Direct Web Remoting) project is an open source solution under the Apache license for the developer who wants to use AJAX and XMLHttpRequest in an easy way.

This can lead to countless hours spent coding and debugging JavaScript code, which is not known to be developer friendly. When manually writing and maintaining the XMLHttpRequest code, a developer must deal with many potential problems, especially with cross-browser compatibilities like different DOM implementations. Many examples on the Internet show all the necessary steps for using XMLHttpRequest to communicate with the server from within an HTML file. AJAX, or Asynchronous JavaScript and XML, describes a Web development technique for creating interactive Web applications using a combination of HTML (or XHTML) and Cascading Style Sheets for presenting information Document Object Model (DOM) JavaScript, to dynamically display and interact with the information presented and the XMLHttpRequest object to interchange and manipulate data asynchronously with the Web server.
