节点文献

基于MVC的Struts框架的应用研究

The Application and Study of Struts Frame Based on MVC

【作者】 叶长春

【导师】 杨春金;

【作者基本信息】 武汉理工大学 , 信号与信息处理, 2008, 硕士

【摘要】 Struts框架经过八年多的发展,版本已经从Struts1.x发展到今天的Struts2.x,即所谓的从Struts1到Struts2。从过去的岁月来看,Struts是所有MVC框架中不容辩驳的胜利者,不管是市场占有率,还是所拥有的开发人群,Struts都拥有其他MVC框架不可比拟的优势。本文从设计模式和框架的基本概念入手,通过研究Struts框架控制器的源码,提取出其中实现的前端控制器模式、应用控制器模式、命令模式、服务工作者模式、单例模式和装饰器模式。接着从Struts框架的概念出发,研究了Struts2.0以前的版本是如何实现MVC架构模式的,接着研究了它的工作流程,详细分析了Struts2的两个前身:Struts1和WebWork,WebWork的数据流程,以及这两个框架的架构和主要特征,然后深入研究了Struts2框架的体系,包括Struts2框架的架构、标签库、控制器组件等,并对Struts2的拦截器技术的实现作了重点研究,对它的功能作了深入的分析,并对Struts1和Struts2的应用方面的差异进行了比较与分析。然后以湖北京珠高速公路管理系统的总体架构为背景,对Struts的模型层的实现进行扩展,且引入了持久化数据,及Hibernate框架,最终,应用Struts作为表示层实现,应用Hibernate作为持久层实现,并结合最新的Spring技术作为业务层实现,进行整合,利用Spring的特性去整合Struts和Hibernate这两大框架,最大程度上降低了它们的耦合性,从而设计出了一套足够灵活、松散耦合、可扩展且高效的Web开发框架。本文重点研究了以下几个问题:(1)详细分析了Struts框架的设计模式,以及Struts、Hibernate等框架的技术特点和实现方法。(2)深入探讨Struts2.0以后的版本对Struts1.x的巨大改进,并详细分析了Struts2.0的技术特点,对Struts2.0的核心基石拦截器件做深入研究。(3)以湖北京珠高速公路管理系统的总体架构为背景,整合Struts、Spring和Hibernate框架的Web实现,降低了各层之间的耦合性。

【Abstract】 Struts frame has been developing for eight years,and the edition has reached Struts2.x from ever Struts1.x, called from Struts1 to Struts2.During the past years, Struts was deedly winner without any elenchus in all of the MVC frames. In not only appropriation proportion but also exploitation regimental, Struts has the absolute superiority relativing to other frames of MVC.Firstly ,it introduces the concept of pattern and framework, by studing the source code of Struts framework controller, it drawes the Front Controller, Application Controller, Service to Worker,Command, Singleton and Decorator.Secondly it introduces the concept of Struts frames, and researches how to realize the frame patter of MVC,then researches the work flow with detail analyse of two preexistences of Struts2, and the interception technical is the most important, detailes analysis of the differences between the Struts1 and WebWork.and Analysis it’s main character of them. Besides it analyzes the structure of the Struts2 frame , including the frame of Struts2storeroom of label,module of controller and so on, also it compares some interfix between Struts1 and Struts2.Thirdly, at the background of Hubei Province to the Beijing-Zhuhai expressway management system for the general framework to enlarge the realization of Struts model layer, importing long haul data and Hibernate frame.Finally It applies the Sturts to the present action layer,applies the Hibernate to the persistence layer, applies the Spring to the business layer,conforms in framework and constructs alfexible, loosely coupled,extensible and high efficiently performance developing architecture.This paper focuses on the following issues:(1) Analysis of the classic Struts architecture, hierarchical design, Struts, Hibernate, and other framework of the technical characteristics and methods.(2) Thorough the tremendous improved of the Struts2 compared the Struts1, and particular analyzed the character of technic.(3) At the background of Hubei Province to the Beijing-Zhuhai expressway management system for the general framework to syncretize the Struts, Spring and Hibernate framework of the Web application.

【关键词】 框架StrutsHibernate设计模式J2EE模式MVC模式
【Key words】 FrameStrutsHibernateDesign PatternJ2EEMVC
  • 【分类号】TP311.52
  • 【被引频次】17
  • 【下载频次】434
节点文献中: 

本文链接的文献网络图示:

本文的引文网络