摘要
基于构件的软件开发方式能够有效提高Web应用的开发效率,它所涵盖的构件组装技术涉及到Web应用的前端页面与后端业务逻辑或第三方服务之间的组合。在分析Web应用的构件类型及其组装方式的基础上,提出了一套基于AJAX的Web应用构件组装技术,该技术尤其关注于前端页面构件与后端业务构件以及Web Service构件之间的自动化组装,包含两种具体的组装实现模式,即采用jQuery调用Servlet的实现模式以及采用DWR技术的实现模式,它们为页面构件提供其与服务端构件交互的能力。另外,这两种组装模式已分别实现为两套在线的Web应用构件组装工具,均支持用户通过图形化的方式定义构件的连接关系,并根据不同模式自动组合构件实体单元来生成Web应用系统。以一个实验性选课网站作为应用开发实例,以验证技术与工具的有用性。
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.
出处
《计算机科学》
CSCD
北大核心
2014年第11期152-156,191,共6页
Computer Science
基金
国家"863"高技术研究发展计划项目基金(2012AA011202)资助