- DWR Java AJAX Applications
- Sami Salkosuo
- 388字
- 2021-04-25 17:37:49
Preface
AJAX enables a rich desktop-like user interface in the browser and enables interactive interfaces that can even replace traditional user interfaces. Communication between browser and server is done in the background and because only the data is transferred between the browser and the server, AJAX applications seem to be, and are actually, fast and responsive to the users.
DWR, Direct Web Remoting, is an Open Source Java framework, licensed under the commercial-friendly Apache Software License v2 for building AJAX applications. DWR's main idea is to hide AJAX implementation details, like XMLHttpRequest and such, from developers. Developers can concentrate on developing the application and business objects and leave the AJAX details behind the scenes where they belong.
DWR allows server-side Java classes to be used in the browser (it's like an RPC between JavaScript functions and the server-side Java) and also allows JavaScript functions to be used in the server (Reverse AJAX). DWR dynamically generates JavaScript functions from Java classes via XML-based configuration, which can be called from browser via the DWR JavaScript library. A DWR servlet on the server side receives requests and calls the actual Java implementation. DWR includes a couple of JavaScript libraries that are required for DWR to work, and are also helpful for developers.
The term Reverse AJAX is used when a server is used to query and/or control the client browser behavior. DWR supports three different methods to do reverse AJAX in applications: Piggyback, Polling (by the client), and Comet (server push).
You may have an on-going project where you may want to use a framework such as JSF or Spring for building the whole solution. In these cases, AJAX and DWR are just a part of the overall picture, and so DWR needs to integrate with other frameworks nicely, and does that successfully!
The DWR project has thought about security very thoroughly. The DWR framework has taken into account many security issues and there is a lot of discussion about security at the DWR website.
This book is written for professional Java developers who are interested in learning DWR and AJAX framework. It starts with a tutorial on DWR's main features and functions. Then it covers setting up the development environment. It concludes with some sample applications.
The later chapters are full of example code for sample applications, to aid comprehension.
- Creo 4.0中文版從入門到精通
- Vue.js框架與Web前端開發(fā)從入門到精通
- Authorware應(yīng)用案例教程
- AIGC輔助數(shù)據(jù)分析與挖掘:基于ChatGPT的方法與實踐
- Python Text Processing with NLTK 2.0 Cookbook: LITE
- Excel 2013電子表格處理
- Flash CC動畫制作案例教程
- AI短視頻生成與剪輯實戰(zhàn)108招:ChatGPT+剪映
- Lighttpd
- ASP.NET 3.5 Social Networking
- 中文版CINEMA 4D R20 實用教程
- 好用,Excel數(shù)據(jù)處理高手
- 企業(yè)微信公眾平臺開發(fā)實戰(zhàn):再小的個體也有自己的品牌
- Maya Paint Effect 特效應(yīng)用手冊
- Building Websites with Mambo