How to transfer Data between Ajax clients and Java servers
On the Oracle Technology Network today, there’s a new tutorial that steps developers through the process of getting Ajax and their Java applications to play nicely together.The article discusses JavaScript Object Notation (JSON) and XML, which are the main options for the response’s data format.
In this article, you’ll learn how to transfer data from an Ajax client to a server, using the URL encoding and XML formats. Then, you’ve seen how to validate the data with XML Schema, extract the needed information with XPath and produce XML or JSON responses on the server side. Finally, you’ve found out how to handle the XML and JSON responses with JavaScript and how to generate dynamic content that is used to update the Web page in the browser.
This article is written by Andrei Cioroianu (devtools@devsphere.com), founder of Devsphere, a provider of development, integration, and consulting services.
Cioroianu has written many Java articles published by Oracle Technology Network, ONJava, JavaWorld, and Java Developer’s Journal. read the tutorial
via Oracle Technology Network
Labels: cloud_computing, development, javascript