CARVIEW |
Ajax on Java
The Essentials of XMLHttpRequest and XML Programming with Java
- By
- Steven Douglas Olson
- Publisher:
- O'Reilly Media
- Released:
- February 2007
- Pages:
- 240
This practical guide shows you how to make your Java web applications more responsive and dynamic by incorporating new Ajaxian features: 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). The book includes strategies for integrating Ajax into JSP and JSF applications, and using Ajax with Struts.
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.
-
Chapter 1 Setup
-
Requirements
-
Installing Tomcat
-
Installing Ant
-
-
Chapter 2 JavaScript for Ajax
-
Creating the Application
-
Running the Example
-
-
Chapter 3 A Simple Ajax Servlet
-
Building and Deploying the Ajax Application
-
Running the Example
-
-
Chapter 4 XML and JSON for Ajax
-
The Character Decoder
-
Setting Up a Simple XML Document
-
Back on the Client: Mining the XML
-
Building the Application
-
Running the Application on Tomcat
-
Passing Data with JSON
-
Summary
-
-
Chapter 5 Getting Useful Data
-
Form Entry with Ajax
-
Building a Suggestion Field
-
-
Chapter 6 Ajax Libraries and Toolkits
-
Using the Dojo Toolkit
-
Using the Rico Toolkit
-
Using DWR with Ajax
-
Drag 'n' Drop with Scriptaculous and Prototype
-
-
Chapter 7 Ajax Tags
-
Creating a Tag Library
-
Third-Party Tag Libraries
-
-
Chapter 8 Ajax on Struts
-
Struts-Layout
-
Adding Ajax to Struts with DWR
-
Ajax with Struts: What Have We Learned Here?
-
-
Chapter 9 JavaServer Faces and Ajax
-
The JSF Lifecycle
-
Writing a Custom JSF Component
-
Developing a Custom JSF Tag
-
Handling JSF Input by Extending HtmlInputText
-
Writing the JSF Support for Ajax
-
Summary
-
-
Chapter 10 Google Web Toolkit
-
Getting Started with GWT
-
Debugging the Application
-
Fleshing Out the Application: The Client
-
Supplying Services to the Client
-
Testing ZipCodes with the Service
-
GWT Widgets
-
-
Colophon

- Title:
- Ajax on Java
- By:
- Steven Douglas Olson
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- February 2007
- Ebook Release:
- February 2009
- Pages:
- 240
- Print ISBN:
- 978-0-596-10187-9
- | ISBN 10:
- 0-596-10187-2
- Ebook ISBN:
- 978-0-596-10599-0
- | ISBN 10:
- 0-596-10599-1
-
Steven Douglas Olson
Steven Olson has been a software developer for 20 years, starting in 1984 with ForTran, Pascal, Basic, and, later, C at a company called Signetics. In 1991, he went to work for Novell, writing C. He began dabbling in Java, and in 1995 was one of the first to join the Java development group at Novell. Since then, he has consulted or worked directly for eight other companies writing primarily in Java. Currently, he works for logoworks.com, where his programming adventures continue.
The animal on the cover of Ajax on Java is a cotton-top tamarin (Saguinus oedipus), a small-bodied monkey characterized by the fan of long, white hair on its head. Tamarins are divided into three groups based on facial hair. The cotton-top is marked by thin hair on its black-skinned face such that its face appears naked. This puts it squarely into the bare-face group, as opposed to the hairy-face or mottled-face group. Tamarins have claw-like nails resembling those of a squirrel rather than flat nails like other primates, which they use to cling, run, and leap through trees. They can do this with great ease due to their size: cotton-tops weigh less than one pound and reach only nine inches in height.
Cotton-top tamarins are found in a small area of northwest Colombia. Their range is bound by the Cauca and Magdalena Rivers and the Atlantic coast; however, they are currently found only in parks and reserves throughout this area. A group of tamarins maintains a fixed territory within its home range, which it chooses based on fruit availability. Other sources of nourishment for the tamarin include insects, plant exudates, nectar, and occasionally reptiles and amphibians. Most groups appear to be monogamous, with only one reproductively active male and female. Cotton-tops, like other members of their subfamily (callitrichines), primarily give birth to non-identical twins. As its scientific name indicates, the male tamarin seems to have an Oedipus complex, yet the mother does not allow this relationship to be consummated.
![]() ©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |