Struts轻量级框架研究及其在职业鉴定系统中的应用
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着面向对象技术、Web技术的发展,软件框架技术在Web开发中得到了广泛应用。框架是预制在软件组件中的集合,可以让程序员自由使用。框架通常提供了一个好的程序模型,这对确保代码一致性,使程序员更专注于业务逻辑具有重要意义。Struts作为一个基于MVC模式的开源Web层框架,方便了代码的编写和管理;iBATIS是一个开源的对象-关系(object-to-relational)映射数据层,主要完成对JDBC的轻量级的对象封装,使得Java程序员可以随心所欲地使用面向对象的编程思维来操纵数据库。本文以职业鉴定管理系统的开发作为背景展开讨论。
     在对武钢职业鉴定管理OSTA(Occupational Skill Testing Authority)特点进行分析的基础上,结合武钢职业鉴定所的业务流程,设计了基于Struts和iBATIS轻量级框架的武钢职业鉴定管理系统,实现了对各类参加职业技能培训人员的有关数据快捷、高效的统计管理。本文主要研究工作如下:
     首先,讨论了轻量级框架及其特点,并将其与重量级框架进行比较,得出其相对于重量级框架在应用开发中的优势。在此基础上引入了两种轻量级框架Stuts框架和iBATIS框架,并对这两个框架的相关技术进行了深入的探讨,给出了一种特别适用于中小型企业的轻量级解决方案—集成开源轻量级框架Struts+iBATIS的整合框架。此轻量级解决方案基于分层的体系结构思想:在表示层使用基于MVC模式的Struts框架;在业务逻辑层采用JavaBean;数据持久层使用Java对象持久化框架iBATIS。
     其次,分析了武钢职业鉴定管理系统需求及其特点,使用软件工程的方法对系统进行了概要设计和详细设计。
     最后,应用前面给出的整合框架进行系统的开发,并以权限角色管理模块为代表,详细描述该鉴定系统的开发流程、实现过程及部署配置。
     在企业级Web系统开发时选用这种轻量级框架整合方案,不仅避免了传统J2EE开发的繁琐,而且可以有效地发挥各领域最优秀的技术,创建更加高效、协调的应用程序。这种轻量级框架将业务逻辑、应用程序控制和数据显示等功能模块区分开来,使得程序员可以集中精力分别开发任意模块而不用再担心耦合问题,使得整个系统的开发有条不紊、容易集成、便于维护和升级。经过试验运行,结果证明利用该方案开发的职业技能鉴定管理系统,开发快速,部署简单,各项技术性能指标均达到了设计要求。
With the fast development of technologies, such as Object-Oriented, Web, software framework technology is extensively used in Web application development. Framework is collections prefabricated in software components and can be used freely by programmer. Generally, framework provide a good program model, which contribute to ensure consistency of code and then programmer can be involved in business logic. As one of the best popular open-source frameworks, Struts Framework is especially convenient to write and manage code; iBATIS is a open-source object-to-relational mapping data layer, and mainly complete encapsulation of JDBC lightweight object, which make Java programmers can use object oriented programming mothod to handle database as their wish. The thesis discussed application and research of lightweight framework with WuGang Occupational Skill Testing Athority System.
     The thesis analyzed the characteristic of the OSTA, and designed OSTA system based on Struts lightweight framework with combination of process of OSTA institute. This system realized fast and efficient statistical management of staff attend occupation training. The primary research work is as follows:
     Firstly, the lightweight framework and its characteristic were discussed with compare to heavyweight framework to got the conclusion that lightweight framework has advantages in development. Based on the frontal discussion, two lightweight framework named Struts and iBATIS were introduced, and technologies related were deeply discussed, then a lightweight solution which is especially suitable to middle-small enterprise is given-an integrated open-source lightweight framework Struts+iBATIS. This lightweight solution based on layered architecture ideological. In presentation layer, Struts framework based on MVC is used; In the business layer, JavaBean is used; In the persistent layer, Java O/R mapping tool iBATIS is used.
     Secondly, by analyzing the characteristic and requirement of the OSTA system, the thesis makes a high-level architecture designing and detail designing of the system with the method of software engineering.
     Lastly, integrated framework given in front is used to develop this system, and detailed description to the development process, the realize process, deployment and configuration is given with the privilege management module as presentative.
     Making use of lightweight framework to develop enterprise application based on Web can avoid complexity of traditional J2EE and build efficient and coordinate software, it can also separates function of business logic, system control logic from data render that are mostly concerned by programmer. And at last the system developed with it has characteres of loose coupling, high reusable, good explanation and extension and so on. Through running, it proves that the function of WuGang Occupational Skill Testing Authority System has reached design requirements by making use of the solution.
引文
[1]Rod Johnson,Juergen Hoeller.Expert One-on-One J2EE Development without EJB.US:Wiley Publishing,2004
    [2]Rod Johnson.Expert One-on-One J2EE Design and Development.US:Wiley Publishing,2003
    [3]Holen.Struts原理、开发及项目实施.http://www.cn-java.com/www1,2002,9
    [4]理查德森著,李琳骁,王海龙译.POJOs IN ACTION中文版-用轻量级框架开发企业应用.北京:电子工业出版社,2007,4
    [5]廖德利,徐金宝.struts框架在用java进行B/S开发中的应用.福建电脑,2005,(10):123-124
    [6]Cavaness C.jakarta著.孙江宏,杨继萍等译.Struts编程.北京:清华大学出版社,2004
    [7]Y Li,X Shao,P Lietal.Design and implementation of a Process-Oriented Intelligent Collaborative Product Design System.Computers in Industry(Elsevier Science),2004
    [8]刘瑜,王立福,张世琨.软件框架开发过程研究.计算机工程与应用,2004,2:26-28
    [9]文俊浩,徐传运,于杨等.基于广义软件框架的开发过程研究.计算机应用研究,2006,5:47-49
    [10]Johnson Rod.J2EE Development Frameworks.Computer,2005,38(1):107-110
    [11]刘晓华,陈亚强.J2EE应用开发详解.北京:电子工业出版社,2005
    [12]Hayashi Noriyuid,Yura Shnnsuke,Ito Kojietal.Trend of J2EE Servers in Open Source Software.NTT Technical Review,2005,3(2):20-24
    [13]Craig A.Berry,John Camell,Matjaz B.Juric等著,邱仲潘等译.实用J2EE设计模式编程指南.北京:电子工业出版社,2003,1
    [14]王映辉,王英杰,王彦吾,樊宏斌.基于MVC的软件界面体系结构研究与实现.计算机应用研究,2004,162(9):36-38
    [15]Deepak Alur,Dan Malks,John Crupi.Core J2EE Patterns:Best Practices and Design Strategies,Second Edition.Prentice Hall PTR,2003
    [16]http://struts.apache.org/index.html,2007
    [17]Malcolm Davis.Struts,MVC的一种开放源码实现,http://www-128.ibm.com/developerworks/cn/java/j-struts/index.html,2001,2
    [18]孙卫琴.精通Struts:基于MVC的Java Web设计与开发.北京:电子工业出版社,2004.
    [19]胡长城.Struts的体系结构.Programmer程序员,2002(10):57-60
    [20]Srikanth Shenoy,Nithin Malya.Struts Survival Guide:Bacis to Best Practices.Object Source,2004
    [21]邱哲,王俊标,马斗编著.Struts Web设计与开发大全.北京:清华大学出版社,2006
    [22]王新.基于MVC模式的通用Web软件系统开发框架设计与实现:[硕士学位论文].成都:电子科技大学,2007
    [23]Ted Husted,Cedric Durnoulin,George Franciscus,David Winterfeldt.Struts in Action.Manning Pubication Co.,2003
    [24]James Turner,Kevin Bedell.Struts Kick Start.Sams Publishing,2002
    [25]Ted Husted等著,黄若波,程峰,程繁科译.实战STRUTS:building Web application with the leading Java framework.北京:机械工业出版社,2005
    [26]Malcolm Davis.Struts,MVC的一种开放源码实现管理复杂大型网站http://www-900.ibm.com/developerWorks/java/j-struts/index.shtml,2001,2
    [27]Deepak Alur,John Crupi,Dan Malks.Core J2EE Patterns 2nd.US:Prentice Hall PTR,2003.
    [28]Ed Roman,Rickard Oberg.The Technical Benefits of EJB and J2EE Technologies.Wiley Computer Publishing,2000
    [29]Eckel B.Thinking in patterns with java.Nj:Prentice Hall,2001
    [30]Rod Johnson.Expert One-on-One J2EE Design and Development.US:Wiley Publishing,2003
    [31]Rod Johnson,Juergen Hoeller.Expert One-on-One J2EE Development without EJB.US:Wiley Publishing,2004
    [32]Chris Richardson.POJOs in Action.Greenwich:Manning Publications Co,2006
    [33]阎宏.Java与模式.北京:电子工业出版社,2002.
    [34]Clinton Begin,Brandon Goodin,Larry Meadors.iBATIS in action.http://www.0185net.com/soft/1/3/2007/05/316121436498.shtml.,2007
    [35]Clinton Begin.iBATIS Data Access Objects-Developer Guide.http://ibatis.apache.org/,2004
    [36]刘能高.论职业技能鉴定在企业员工职业生涯管理中的作用:[硕士学位论文].长沙:湖南师范大学研究生院,2006
    [37]于建忠,顾红,彭芮.职业技能鉴定的目标管理及有效过程控制的实践研究.教育与职业,2006,27:17-19
    [38]Ravi Sandhu,David Ferraiolo,Richard Kuhn.The NIST Model for Role-Based Access Control:Towards A Unified Standard.http://csre.nist.gov/rbac/sandhu-ferraiolo-kuhn-00.pdf
    [39]Ed Burnette.Eclipse IDE Pocket Guide.Canada:O'Reilly Media,Inc,2005
    [40]赵寒,王明微,李山等著.Eclipse完全手册.北京:电子工业出版社,2006
    [41]http://tomcat.apache.org/tomcat-5.5-doc/introduction.html
    [42]MUKHAR K,LAUINGER.T.Java数据库应用程序编程指南.北京:电子工业出版社,2002.
    [43]李志伟.DB2基础教程.北京:清华大学出版社,2003
    [44]宫晓红.基于MVC结构的管理信息系统的研发:[硕士学位论文].天津:天津工业大学研究生院,2003
    [45]杨欣华.基于Struts的派出所综合管理系统的研究与实现:[硕士学位论文].长春:吉林大学研究生院.2007

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

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

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