concept Ajax in category java

This is an excerpt from Manning's book Spring Roo in Action.
Exposing data for Ajax or web service calls
To add a more dynamic nature to your forms, let’s create an Ajax interaction between your page and the server. As you probably know, Ajax is a label for technology that calls web services from a previously loaded page. Ajax calls can be performed synchronously or asynchronously.

This is an excerpt from Manning's book Portlets in Action.
js— Contains the JavaScript files used by the portlet. Portlets may also make use of JavaScript libraries like DWR, Dojo, and jQuery, which are normally packaged in a JAR file and accessed directly by the portlets. In most cases, portlets consist of multiple pages of information, and the JavaScript may be required for creating HTML widgets on the fly or using Ajax.
Downloading binary content isn’t related to the concept of Ajax, but it’s covered in this chapter because the ResourceServingPortlet interface’s serveResource method isn’t only responsible for handling Ajax requests, but also for serving binary content.
You may be wondering why Ajax is important in developing highly responsive portlets. Let’s say that you create a portal page that consists of multiple portlets. Each portlet on this portal page retrieves its data from one or more databases during the render phase, so the load time of the portal page is high.
Using Ajax in developing portlets requires myriad skills, including a good understanding of JavaScript, CSS, HTML, DOM, the XMLHttpRequest object, and so on. As we go through the implementation details of the Book Catalog portlet in this section, we’ll look at the JavaScript libraries that hide Ajax-related details from the developer and hence simplify the development of Ajax applications. We’ll also look at some of the important concepts in various Ajax technologies that are involved in developing highly interactive portlets using Ajax.
Table 12.3 provides an overview of some of the libraries that enable you to build web applications and portlets with Ajax. Later in this section, we’ll discuss how these libraries can be used to implement the Book Catalog portlet.
Table 12.3. Java and JavaScript libraries that enable Ajax development
JavaScript library
Description
Dojo Toolkit The Dojo Toolkit is an open source cross-browser JavaScript library that provides rich UI widgets and Ajax support. For more information about the Dojo Toolkit, refer to its official website: http://dojotoolkit.org/. jQuery jQuery is an open source cross-browser JavaScript library that provides Ajax support. It also has a user interface library that provides widgets for developing interactive web pages. Refer to the official jQuery website for more information: http://jquery.com/. DWR (Direct Web Remoting) DWR is a servlet-based Java library that generates JavaScript code based on Java classes, making it easy for Java developers to use Ajax in Java-based web applications and Java portlets. Refer to the official DWR website for more information: http://directwebremoting.org/.

This is an excerpt from Manning's book Struts 2 in Action.
The view is the presentation component of the MVC pattern. Looking back at figure 1.3, we see that the result returns the page to the web browser. This page is the user interface that presents a representation of the application’s state to the user. These are commonly JSP pages, Velocity templates, or some other presentation-layer technology. While there are many choices for the view, the role of the view is clear-cut: it translates the state of the application into a visual presentation with which the user can interact. With rich clients and Ajax applications increasingly complicating the details of the view, it becomes even more important to have clean MVC separation of concerns. Good MVC lays the groundwork for easily managing the most complex front end.
On the client, we use JavaScript Ajax techniques to submit an asynchronous request to our Struts 2 application. Since Ajax is beyond the scope of this book, we’ll be brief here. We’d like to point out that our Ajax techniques come directly from another Manning title, Ajax in Action. If you’d like to learn more about Ajax, we highly recommend that acclaimed book.
In the rest of this section, we’re going to build a custom result that can return a response suitable for consumption by an Ajax client. This example, while focusing on an Ajax use case, is meant, first and foremost, to serve as a thorough introduction to results. But we’ve chosen Ajax as our example because we know that all new web application frameworks will have to support Ajax. In short, we feel that Struts 2 provides a strong platform for building Ajax applications, and we believe that the flexibility of the result component is a cornerstone of this strength. Thus, it’s only natural to use an Ajax example as our case study of a custom result.

This is an excerpt from Manning's book GWT in Practice.
Ajax is also significant in that applications that are native to the browser feel more natural to users. No matter how seamless the browser integration, there are typically some noticeable differences with plugin technologies. Such differences may include an install step; the treatment of browser constructs in a different manner, such as with bookmarks and navigation; and starkly different user interface elements compared with HTML, CSS, and JavaScript. GWT, and Ajax in general, is a form of RIA that embraces the parts of the web that do work well and that users are familiar with.