节点文献

基于J2EE和MVC的Web应用开发方法的探讨

Discussion of Web Application Development Method Based on J2EE and MVC

【作者】 熊丽

【导师】 熊前兴; 吴业福;

【作者基本信息】 武汉理工大学 , 计算机应用技术, 2002, 硕士

【摘要】 当前,Web技术在Internet上得到了广泛的应用,它支持实时的信息发布、动态的用户交互以及与后台系统灵活的安全的连接。因此如何构造功能更加强大、应用更为灵活、开发更为简便的Web应用程序成为当前Internet技术探讨的热点,而解决该问题的关键是网站技术和开发方法。 近几年面向对象领域内提出了一个设计模式(Design Pattern)的思想。这种思想认为在系统设计这一层次上,软件开发可以抽象成一种模式,模式描述了系统面临的问题及其解决方案,并可以重用。UML(统一建模语言)则着眼于开发一种能够规范面向对象建模技术的方法,它规定了一套可视化的描述软件系统的标准语言,并适用于整个软件生命周期以及不同的实现技术。 MVC(Model-View-Controller)模型-视图-控制器设计模式是设计模式中很重要的一种。模型即相关的数据,它是对象的内在属性;视图是模型的外在表现形式,一个模型可以对应一个或者多个视图,视图还具有与外界交互的功能;控制器是模型与视图的联系纽带,控制器提取通过视图传输进来的外部信息,转化成相应事件,然后由对应的控制器对模型进行更新;相应的,模型的更新与修改将通过控制器通知视图,保持视图与模型的一致性。 J2EE(Java2 platform,enterprise edition)是美国Sun公司刚刚推出的一种全新概念的模型,与传统的互联网应用程序模型相比有着不可比拟的优势。它主要包括JSP、Servlet、JDBC、JavaBean、EJB等,不仅具备了Java一贯的平台无关性、分布式处理能力强和安全等优点,而且在Web应用程序的开发上已经形成了标准的体系结构,移植性和兼容性很强。 本文介绍了面向对象思想中设计模式的概念,着重阐述了MVC设计模式的体系结构和UML标准建模语言,并提出了一种适用于中小网站的基于J2EE和MVC模式的Web应用开发方法。并以某公司实际的Web应用设计开发为例,介绍了根据UML提供的系统的、抽象的、标准的、可视化表示,实现模式编程的全过程,验证了其方法的正确性。

【Abstract】 Web technique is the most far-ranging application development technique in the Internet currently, which sustains real-time information release, dynamic user alternation and flexible safe connection with back system. So it’ s a hotspot of Internet technique development currently to construct Web application with more function, more flexible application and easier development, the key of solving this problem is the technique and development methods of website.Design Pattern is a kind of important idea of Object-Oriented field brought forward in the latest years. The idea thinks that software can be abstracted to a kind of pattern which describes the problems and solutions facing to the system and can be reused at the level of system design. UML regulates a suit of standard language which describes software system visually and is applicable to the entire software lifecycle and different techniques, with a view to developing a kind of method unifying Object-Oriented modeling technique.MVC (Model-View-Controller) Design Pattern is one of the important design patterns. Model is the relative data which is the internal property of Object; View is external presentation form of Model, one Model can correspond to one or more View, View also possesses the function of alternating with environment; Controller is the relating ligament of Model and View, Controller picks up the external information transmitting from View and transfers to corresponding event, and then update the Model; On the other hand, Model’ s update and alteration will notice View via Controller to keep the coherence of View and Model.J2EE(Java2 platform, enterprise edition) is a kind of new model entirely which consists of JSP, Servlet, JDBC, JavaBean and EJB so on mostly. It has not only independence of platform and high distributing disposing ability but also strong compatibility.The paper describes the concept of Design Pattern, emphasizes the framwork of MVC and UML and provides a new development method based on MVC and J2EE, and develops a Web application using the method andaccording to the systematic, nonobjective, normal and visual presentation provided by UML.

【关键词】 面向对象UMLJZEE设计模式MVCDAO
【Key words】 Object-OrientedUMLJ2EEDesign PatternMVCDAO
  • 【分类号】TP311.52
  • 【被引频次】21
  • 【下载频次】236
节点文献中: