首页 | 本学科首页   官方微博 | 高级检索  
     

Ajax与Struts框架在商情网站中的应用
引用本文:黄诗诗,俞奕,刘鹏. Ajax与Struts框架在商情网站中的应用[J]. 科技信息, 2006, 0(Z1)
作者姓名:黄诗诗  俞奕  刘鹏
作者单位:武汉理工大学计算机科学与技术学院,武汉理工大学计算机科学与技术学院,武汉理工大学计算机科学与技术学院 湖北 武汉 430070,湖北 武汉 430070,湖北 武汉 430070
摘    要:为了解决传统Web应用程序在页面重载循环方面的局限性,采用了Ajax与Struts框架相结合的技术,并以商情网站应用为例,介绍了在数据校验和级联菜单两个方面的应用。其中主要利用XMLHttpRequest以异步方式向Servlet发送请求,然后利用DOM解析服务器的返回并完成对页面的更新。通过一系列的应用,证明了与传统web应用程序相比,它在减轻服务器的负担,无刷新更新页面,调用外部数据,以及促进页面呈现与数据的分离等几个方面都存在优势。

关 键 词:AJAX  Struts  XMLHttpRequest  DOM

Application of Ajax and Struts Framework in market condition website
Zhong Luo Huang Shi-shi Yu Yi Liu Peng. Application of Ajax and Struts Framework in market condition website[J]. Science, 2006, 0(Z1)
Authors:Zhong Luo Huang Shi-shi Yu Yi Liu Peng
Abstract:In order to solve the limitation of traditional Web application in page reloading, this paper adopts the technology that combines Ajax with Struts. In this paper, the work flow is analyzed in detail, and the application in a market condition website is taken for instance, in which data validation and dynamically loading list boxes are emphasized. XMLHttpRequest is utilized to send an asynchronous request to Servlet from a web page, then the DOM properties and methods is used to update the web page. According to the applications, it is proved that it is superior in relieving the burden on server, updating web page without refresh, reading outside data source, and separating view with data compared with traditional Web applications.
Keywords:AJAX  Struts  XMLHttpRequest  DOM
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号