面向Java开发人员的Ajax:Ajax的Java对象序列化
面向Java开发人员的Ajax:Ajax的Java对象序列化(中文4600字,英文3100字)
如果您正在使用异步 JavaScript 和 XML(Ajax)进行 Java™ Web 开发,那么您最关心的问题可能就是把数据从服务器传递给客户机。在 面向 Java 开发人员的 Ajax 系列的第二篇文章中,Philip McCarthy 介绍了 Java 对象序列化的五种方式,并提供了选择最适合应用程序的数据格式和技术所需要的全部信息。
下面介绍Ajax 的构造块:
(1)如何用 JavaScript XMLHttpRequest 对象从 Web 页面向服务器发送异步请求。
(2)如何用 Java servlet 处理和响应请求(向客户机返回 XML 文档)。
(3)如何在客户端用响应文档更新页面视图。
One:Ajax for Java developers: Java object serialization for Ajax
If you're doing Java™ Web development using Asynchronous JavaScript and XML (Ajax), then delivering data from the server to the client is probably your top concern. In this second article in the Ajax for Java developers series, Philip McCarthy walks you through five approaches to Java object serialization and gives you all the information you need to choose the data format and technology best suited to your application.
In the first article in this series, I introduced you to the building blocks of Ajax:
(1)How to use a JavaScript XMLHttpRequest object to send an asynchronous request to a server from a Web page
(2)How to handle and respond to that request with a Java servlet returning an XML document to the client
(3)How to use that response document on the client to update your page view [资料来源:https://www.doc163.com]