基于Ajax技术及J2EE架构的RIA集成框架的研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着Web2.0的兴起,如何提高用户交互体验成为广大开发设计人员讨论的热点,作为Web2.0核心技术的Ajax也逐渐得到广泛的关注、研究和应用。Ajax最大的优势之一是能够提供浏览器端和服务器端异步交互的功能,这种交互方式有效地降低了服务器的负担。本文通过深入研究Ajax技术及其框架和J2EE体系结构下最流行的开源框架之一WSH (WebWork+Spring+Hibernate),结合目前比较成熟的MVC模式,根据各自的特点,提出了基于Ajax技术及J2EE架构的RIA集成框架,从而提高程序的可重用性和易扩展性,并降低后期维护的复杂度。
     在本文提出的基于Ajax技术及J2EE架构的RIA集成框架的基础上,实现了横向审批管理系统的具体设计和开发,进一步论证了将Ajax框架融入到J2EE框架中的可行性和可操作性。在具体的应用开发中,实现了主动刷新请求、被动定时局部刷新,并利用Ajax中DWR框架的反推机制,实现了服务器端推送功能。最后经过总结得出结论,该集成框架能够降低表现层、业务逻辑层和数据持久层之间的耦合度,使得Web应用层次分明,可重用性强,而且通过Ajax技术及其框架的使用,解决了很多传统Web应用中普遍存在的问题,在很大程度上改善了浏览体验。
     在具体的设计实现上,本文提出了将DWR框架和WSH框架完美整合无缝连接的开发模式,并将该开发模式应用到横向审批管理系统的实际开发中,以实际应用展示了这种整合所带来的巨大优势。
With the rise of Web2.0, the improvement of user interaction experience becomes a hot topic among the majority of developers and designers. Ajax, as the core technology of Web2.0, has been gradually widespread concern, research and application. One of the biggest advantages of Ajax is the ability to offer asynchronous interaction between browser-side and server-side. This approach of interaction can effectively reduce the burden on the server. Through in-depth study on Ajax technology and WSH which is one of the most popular open source framework under the J2EE architecture, combining the MVC pattern which is relatively mature nowadays, according to the characteristics of them, the article proposed a RIA framework which is based on Ajax technology and J2EE architecture, it can not only improve the reusability and program scalability, but also reduce the complexity of post-maintenance.
     Based on the integrated framework, this article has been achieved the specific design and development of horizontal approval management system, further demonstrating the feasibility and operability of this framework. The article realized active and inactive refresh, also achieve the server-side push by using the DWR inverse mechanism in Ajax. Finally comes the conclusion that the integrated framework can reduce the coupling among the presentation layer, business logic and data persistence layer, in the same time, it makes the layers clear in Web applications with highly reusable. By using Ajax and its framework, this article has been solved many problems in traditional Web applications and greatly improved the interaction experience.
     This article proposed a development model with seamless integration between DWR and WSH framework in specific designing and implementation. With the using of this development model, the article achieved horizontal approval management system which demonstrates the enormous advantages of this integration.
引文
[1]Jesse James Garret. AJAX:A New Approach to Web Applications.2005.
    [2]李刚.基于J2EE的Ajax宝典[M].北京:电子工业出版社,2007.
    [3]Brett McLaughlin.李二勇等译.Java与XML数据绑定[M].北京:中国电力出版社,2003.
    [4]张桂元等.征服AjaxWeb2.0快速入门与项目实践(java)[M].北京:人民邮电出版社,2006.
    [5]http://wenku.baidu.com/view/ecb9be6cleb91a37f1115cfe.html.
    [6]http://coolzhi.javaeye.com/blog/552409.
    [7]杨立国.基于Ajax和SSH集成框架的国有资产管理系统.北京:北京化工大学出版社,2007:5-18.
    [8]许龙.基于Ajax技术的J2EE应用框架的研究与实现.陕西:西北大学出版社,2010:4-29.
    [9]张二梅.基于Ajax技术的RIA应用框架的研究与实现.北京:北京邮电大学出版社,2009:7-32.
    [10]http://wenku.baidu.com/view/667ba90d6c85ec3a87c2c54f.html.
    [11]娄雪.基于Ajax的企业级Web开发技术研究及其应用.大连:大连交通大学出版社,2009:17-26.
    [12]郭元.基于Ajax技术的B/S体系架构系统的应用研究.合肥:合肥工业大学出版社,2010:5-26.
    [13]郭峰.Spring从入门到精通[M].北京:清华大学出版社,2006:72-183.
    [14]孙卫琴.精通Hibernate:Java对象持久化详解[M].北京:电子工业出版社,2004:118-122.
    [15]张孝详.深入体验Java Web开发内幕——核心基础[M].北京:电子工业出版社,2006.
    [16]冯曼菲.精通Ajax——基础概念、核心技术与典型案例[M].北京:人民邮电出版社.2008.
    [17]Johnson, White. A, Charland. Ajax企业级开发[M].北京:人民邮电出版社.2008.
    [18]徐驰Ajax模式在异步交互Web环境中的应用[J].计算机技术与发展,2006,16(11):107-112.
    [19]JSON介绍,http://www.json.org/index. html.
    [20]Paulson. L. D. Building rich web applications with Ajax[J]. Computer Volume 38, Issue.10.2005.
    [21]Smith. K. Simplifying Ajax-Style Web Development[J]. Computer Volume 38 Issue
    5, Ramnivas Laddad. Aspect)in Action. Manning 2003.
    [22]姚国新.基于户AJAX的Web应用技术的研究与实现.陕西:西北大学出版社,2006:14-27.
    [23]YAHOO YUI http://develop/yahoo.com.cn.
    [24]Google Suggest http://labs.google.oom/suggestfaq.html.
    [25]Dave Crane, Darren James. Ajax in action. US:Addison-Wesley.2005.
    [26]Chris Ullman, Lucinda Dykes. 徐璐译. Ajax入门经典[M]. 北京:清华大学出版社.2008.
    [27]王东勃.基于C/S和B/S混合模式的档案资料管理信息系统的研究.陕西:西北工业大学出版社,2001.
    [28]王瑞玲.基于AJAX的企业信息管理系统的设计与实现.天津:天津大学出版社.2007.
    [29]Noriko Hanakwa, Nao Ikemiya. A web browser for Ajax approach with asynchronous communication mode. Proceedings of the 2006 IEEE/WIC/ACM International Conference on Web Intelligence.2006:808-814.
    [30]Joshua Eichorn.陈宗恒,徐锋译.深入理解Ajax——基于JavaScript的RIA开发[M].北京:人民邮电出版社,2007.
    [31]Nadir Guizar.陈晓燕,丁炎炎译.实用J2EE应用程序体系结构[M].北京:清华大学出版社,2003.
    [32]蒋维.Ajax技术在网络B/S架构中的应用研究[J].微计算机应用,2008,29(7):29-33.
    [33]蔡剑,景楠.Java Web应用开发:J2EE和TOMCAT[M].北京:机械工业出版社.2005.
    [34]Scott Raymond. Ajax on Rails(影印版)[M].南京:东南大学出版社.2007.
    [35]Phil Ballard. Sams Teach Yourself Ajax in 10 Minutes. US:Addison-Wesley.2006.
    [36]http://Ajaxian.com/archives/2007-Ajax-tools-usage-survey-results.
    [37]http://directwebremoting.org/dwr/examples/live. html.
    [38]马国胜.分析AJAX技术的安全性[J].电脑编程技巧与维护,2006,26(7):80-83.
    [39]陈悦.面向Ajax框架Web服务的攻击和安全防御.上海:上海交通大学出版社,2006:51-55.
    [40]李骏,陈恭亮等.Ajax对Web应用程序安全的影响[J].信息安全与通信保密,2007,39(3):35-37.
    [41]Helena Galhardas. Data Cleaning and Transformation Using the AJAX Framework. Springer-Verlag Berlin Heidelberg.2006.
    [42]游丽贞,郭宇春,李纯喜.Ajax引擎的原理和应用[J].微型计算机信息,2006,22(6):32-36.
    [43]杨晓俊.Web2.0下的Ajax及其应用[J].计算机与数字工程,2007,8(35):157-160.
    [44]杨国瑞,张思博.基于AJAX的web应用架构设计[J].现代电子技术,2006,29(5):95-98.
    [45]钟晖云,徐海水,廖志坚等.基于AJAX的轻量级身份认证[J].计算机应用研究,2007,24(7):135-137.
    [46]王栋.AJAX技术在印染智能优化及商务信息系统的应用.杭州:浙江大学软件学院.2006.
    [47]陈郑伟,彭岩,庄力可.基于AJAX的电子政务平台的研究与应用[J].计算机工程与应用,2007,43(5):196-214.
    [48]A. Marehetto, P. Tonella, F. Rieea. State-based testing of Ajax Web applications. In Proceedings of the 1st IEEE International Conference on Software Testing Verification and Validation(ICST'08). IEEE Computer Society,2008.
    [49]柯自聪.AJAX开发精要——概念案例与框架[M].北京:电子工业出版社.2006.
    [50]Gross. C.李锟等译.Ajax模式与最佳实践[M].北京:电子工业出版社.2007.
    [51]奥尔森.Ajax on Java(影印版)[M].南京:东南大学出版社.2007.
    [52]艾可恩.深入理解Ajax——基于JavaScript的RIA开发[M].北京:人民邮电出版社.2007.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700