Introduction to Ajax.
Posted on: January 27, 2011 at 12:00 AM
In this section, we will introduce about the Ajax and use of Ajax in struts.

Introduction to Ajax.

Ajax : Asynchronous JavaScript and XML

Ajax is not a technology, It is a collection of technologies. It is used for creation a fast and dynamic web pages. 

Before the Ajax, for accessing any data from the server side, it compulsory to reload whole page on client side. Ex, if the user submits a form with information, it takes more  time to validate and returns response to the client. With the help of Ajax, you can update a part of web page,  instead of reloading whole page. ADS_TO_REPLACE_1

Struts2 use a toolkit called Dojo. It provides Ajax support. Ajax allows the developers to develop GUI like web applications. 

struts2-dojo-plugin-2.2.1.1.jar

Note: If a client send a Ajax request, the server does not know it  is script request, it woks another request. ADS_TO_REPLACE_2

Ajax tool and technologies

Ajax is the combination of different technologies, which works together. These technologies are tools are as follows..

  1. Java Script,
  2.  XML,
  3. XMLHttpRequest,
  4. CSS,
  5.  Server Side Scripting.

Ajax examples:

  1. How to change value of div using Ajax in struts.
  2. Ajax validation in struts2.

Related Tags for Introduction to Ajax.:

Advertisements

Ads

 
Advertisement null

Ads