Book description
This practical guide shows you how to make your Java web applications more responsive and dynamic by incorporating new Ajaxian features, including suggestion lists, drag-and-drop, and more. Java developers can choose between many different ways of incorporating Ajax, from building JavaScript into your applications "by hand" to using the new Google Web Toolkit (GWT).
Ajax on Java starts with an introduction to Ajax, showing you how to write some basic applications that use client-side JavaScript to request information from a Java servlet and display it without doing a full page reload. It also presents several strategies for communicating between the client and the server, including sending raw data, and using XML or JSON (JavaScript Object Notation) for sending more complex collections of data.
The book then branches out into different approaches for incorporating Ajax, which include:
- The Prototype and script.aculo.us Javascript libraries, the Dojo and Rico libraries, and DWR
- Integrating Ajax into Java ServerPages (JSP) applications
- Using Ajax with Struts
- Integrating Ajax into Java ServerFaces (JSF) applications
- Using Google's GWT, which offers a pure Java approach to developing web applications: your client-side components are written in Java, and compiled into HTML and JavaScript
Ajax gives web developers the ability to build applications that are more interactive, more dynamic, more exciting and enjoyable for your users. If you're a Java developer and haven't tried Ajax, but would like to get started, this book is essential. Your users will be grateful.
Publisher resources
Table of contents
- Ajax on Java
- Dedication
- A Note Regarding Supplemental Files
- Preface
- 1. Setup
- 2. JavaScript for Ajax
- 3. A Simple Ajax Servlet
- 4. XML and JSON for Ajax
- 5. Getting Useful Data
- 6. Ajax Libraries and Toolkits
- 7. Ajax Tags
-
8. Ajax on Struts
-
8.1. Struts-Layout
- 8.1.1. Installing Struts-Layout
- 8.1.2. Writing the Struts-Layout JSP
- 8.1.3. Struts Action Forms
- 8.1.4. What’s an Action, and What Happened to My Servlet?
- 8.1.5. The Struts Configuration
- 8.1.6. Where Does the Data Come From?
- 8.1.7. Populating the Suggestion List
- 8.1.8. Struts-Layout Is Cool Because...
- 8.2. Adding Ajax to Struts with DWR
- 8.3. Ajax with Struts: What Have We Learned Here?
-
8.1. Struts-Layout
- 9. JavaServer Faces and Ajax
- 10. Google Web Toolkit
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Ajax on Java
- Author(s):
- Release date: February 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596553647
You might also like
book
AJAX and JavaServer™ Faces
Based on material from the forthcoming second edition of Core JavaServer™ Faces by David Geary and …
book
Ajax Patterns and Best Practices
Ajax is taking us into the next generation of web applications. Ajax has broken the client-server …
book
Ajax in Action
Web users are getting tired of the traditional web experience. They get frustrated losing their scroll …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …