计算机科学 ›› 2014, Vol. 41 ›› Issue (11): 152-156.doi: 10.11896/j.issn.1002-137X.2014.11.030

• 2013’全国软件与应用学术会议 • 上一篇    下一篇

基于AJAX的Web应用构件组装技术及工具

郑迪文,沈立炜,彭鑫,赵文耘   

  1. 复旦大学软件学院 上海201203 上海市数据科学重点实验室复旦大学 上海201203;复旦大学软件学院 上海201203 上海市数据科学重点实验室复旦大学 上海201203;复旦大学软件学院 上海201203 上海市数据科学重点实验室复旦大学 上海201203;复旦大学软件学院 上海201203 上海市数据科学重点实验室复旦大学 上海201203
  • 出版日期:2018-11-14 发布日期:2018-11-14
  • 基金资助:
    本文受国家“863”高技术研究发展计划项目基金(2012AA011202)资助

Component Composition Technology and Tool Based on AJAX for Web Application

ZHENG Di-wen,SHEN Li-wei,PENG Xin and ZHAO Wen-yun   

  • Online:2018-11-14 Published:2018-11-14

摘要: 基于构件的软件开发方式能够有效提高Web应用的开发效率,它所涵盖的构件组装技术涉及到Web应用的前端页面与后端业务逻辑或第三方服务之间的组合。在分析Web应用的构件类型及其组装方式的基础上,提出了一套基于AJAX的Web应用构件组装技术,该技术尤其关注于前端页面构件与后端业务构件以及Web Service构件之间的自动化组装,包含两种具体的组装实现模式,即采用jQuery调用Servlet的实现模式以及采用DWR技术的实现模式,它们为页面构件提供其与服务端构件交互的能力。另外,这两种组装模式已分别实现为两套在线的Web应用构件组装工具,均支持用户通过图形化的方式定义构件的连接关系,并根据不同模式自动组合构件实体单元来生成Web应用系统。 以一个实验性选课网站作为应用开发实例,以验证技术与工具的有用性。

关键词: 构件组装技术,Web应用,AJAX

Abstract: For Web applications,component-based software development is also a way to improve the efficiency of development,whose solution involves the combination of the front-end and the back-end or third-party services.We proposed a component composition technology based on AJAX for Web application,based on the analysis on the component types and its composition pattern of the Web application.In this technology,we proposed two different solutions for combination of different component types.One uses jQuery to invoke Servlet while the other uses DWR technology to enable interaction between front-end page component and back-end business component or Web Service component.In addition,based on the proposed method,this paper implemented two online Web application component composition tools through two implementation styles,which allow users to define the composition details through graphical user interface and automatically complete the component composition process to generate Web applications.This paper used an experimental course selection website as an application development example,to verify the usefulness of the technology and the tool.

Key words: Component composition technique,Web application,AJAX

[1] Jacobson I,Griss M,Jonsson P.Software reuse:architecture,process and organization for business success[M].ACM Press/Addison-Wesley Publishing Co.,1997
[2] Fuqing Y,Hong M,Keqin L.Software Reuse and Software Component Technology [J].Acta Electronica Sinica,1999,27(2)
[3] George T H,William T C.Component-based software engineering:putting the pieces together[M].Reading:Addison-Wesley,2001
[4] 陈霄,吴毅坚,彭鑫,等.采用构件组装技术协同开发 Web 应用的方法[J].计算机科学与探索,2013,7(2):114-125
[5] Direct Web Remoting.http://directwebremoting.org/dwr/index.html.Accessed:5 June 2013
[6] Serrano N,Aroztegi J P.Ajax frameworks in interactive Web apps[J].Software,IEEE,2007,24(5):12-14
[7] 张栗,张凤元,危胜军.基于 DWR 框架的 Web 应用的设计与实现[J].计算机技术与发展,2008,18(8):84-87

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!