节点文献

MVC在多层Web体系结构中的应用研究

Application Research of MVC on Multi-Tier Web Architecture

【作者】 唐海涛

【导师】 陈金水;

【作者基本信息】 河海大学 , 计算机应用技术, 2003, 硕士

【摘要】 目前,Internet迅速普及,Web应用的复杂性和规模都在不断增加和扩大,呈现出高度灵活性、可靠性和个性化等特点,这就给Web应用开发带来了新的挑战。本文通过分析后认为,在现有的Web开发中,由于系统的界面表示、流程控制和业务逻辑代码相互混杂,导致了系统性能的下降,同时传统的单一用户界面类型也越来越无法满足用户界面类型多样化的要求。 为此,本文引入了传统的MVC(Model-View-Controller)设计模型概念,通过分析其实现原理和特点,指出可以对其加以改进以解决上述多层Web开发中的问题。论文首先对多种Java技术和XML技术进行了对比分析,提出了一个合理整合多种技术的解决方案,即Servlet+JSP+JavaBean+EJB+XML。然后,通过对传统MVC设计模型进行改进,本文提出了一个符合多层Web体系结构特点的新型MI_WMVC设计模型,该设计模型不但能够解决传统Web开发中存在的问题,而且具有系统功能划分清晰,系统流程能够灵活配置,可扩展性、可维护性强,易于开发,可支持多种用户界面类型等优点。 本文重点分析了MI_WMVC设计模型中控制器、模型和视图的设计原理及其关键技术,并在所提出的MI_WMVC设计模型基础上,按照面向对象的软件工程思想,以UML为工具设计开发了《网上课程实习系统》,论文具体给出了“学生选课”子模块的详细设计实现过程及其系统的配置和运行步骤。 本文的创新之处在于设计和实现了请求映射信息表和视图定义表两个XML配置文件,控制器通过对该XML配置文件中信息的理解灵活地控制住系统的流程;通过使用XML技术实现了对多种用户界面类型的支持。

【Abstract】 In recent years, with the quick development of Internet, the complexity and the scale of Web appliction are increasely enlarged. Thus, high flexibility, reliability and personality are needed for the Web appliction. Yet, because of the interweaveraient of user-interface, flow control and business logic, the system performance will decrease. At the same time the traditonal single user-interface can not meet the new demand of mutiple user-interfaces.In order to solve this kind of problems, the traditional MVC pattern is introduced in the paper. Firstly, a new technology solution, i.e. Servlet+JSP+JavaBean+EJB+XML, is proposed. Secondly, based on the modification of traditional MVC pattern, the paper brings forward a new MI_WMVC pattern, which is suitable for the characteristic of multi-tier Web architecture. Under this pattern, the system functions can be clearly devided and the system can support mutiple user-interfaces.The emphasis of the paper includes design principle, key technique and algorism of controller, model and view of MI-WMVC pattern. Based on this pattern, a "Course Practice System" is developed according to the Object-Orient software engineering thingking.The new ideas of the paper includes: i) designs and realizes two XML configration files of request-mapping file and view-definition file, the controller can control system flow flexibly by parse these two files, ii) realize the support of multiple user-interfaces by the use of XML.

  • 【网络出版投稿人】 河海大学
  • 【网络出版年期】2003年 04期
  • 【分类号】TP393.09
  • 【被引频次】14
  • 【下载频次】176
节点文献中: 

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

本文的引文网络