Pages

Sunday, January 23, 2011

Ajax Implementation

Ajax (shorthand for Asynchronous JavaScript and XML) is a group of interrelated web development methods used on the client-side to create interactive web applications. With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. Data is usually retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not needed, and the requests need not be asynchronous.

Implementation:
Step 1 Jsp part : wrote the following code in JSP where Ajax calls made


above was in <script></script> only.
in the body section
<input type="text" onblur="getXXX(this)" name="pname"/>

Step 2: Java Part:

xxxAction.java

 ..,,,,,
And forward mapping to NULL.





No comments:

Post a Comment