Font Size: a A A

The Theory And Realization Of MVC Design Pattern

Posted on:2005-03-22Degree:MasterType:Thesis
Country:ChinaCandidate:X LiFull Text:PDF
GTID:2168360125450646Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
1,MVC design patternMVC is the abbreviation of Model-View-Controller. It is a popular software design pattern at present. Recently, with the maturity of J2EE, it is becoming a kind of design model recommended on J2EE's platform; It is also one of the design model that a mass of Java developer are very interested in. With the increasing application of network, it is undoubted that MVC design pattern is a very advanced design philosophy for the exploitation of web application. No matter what language you have choose, no matter how complicated the application is, it can offer the most basic analytical method for understanding and analyzing the application model, offer the clear design frame for constructing the products, offer the normative basis for the software projects. MVC design pattern is a method of dividing the system function; it is designed for the application programs, which need to offer multi-views for same data. It has commendably realized the separation of data layer and representation layer. It is especially suitable for developing the application program related to user's figure interface. MVC design pattern separates an application's flow of input, process and output into Model, View and Controller, so an application is separated into three layers: Model layer, View layer and Controller layer. The basic structure of MVC design pattern defines: the Controller is used for dealing with the user's command and the procedure incidents; the Model is used for maintaining the data and offering methods to visiting the data; the View, is used for showing the data. 2,Struts frameMVC itself is a very complicated system, so when you want to adopt MVC to realize your web application, you had better select a ready-made MVC frame, develops with it, you can get twice the result with half the effort. There are a lot of MVC frames suitable for using now, Struts has intact document and is comparatively simple, so it is convenient that one develops the system which based on MVC design pattern with it. The purpose of Struts is to offer a standard mode for the web applications which are based on MVC design pattern and using Java technology. Its range of application is extremely wide; it can be used in different projects and different trades. Struts is a highly configurable and extensible frame. Using it, people can nearly develop any web application using Java technology that can be thought of. Struts has offered a very wonderful MVC frame already, so it can accelerate the development by utilizing Struts to develop MVC system. 3,S-Build frameS-Build is a frame, which is developed by the project group of ZhongTong Scientific and Technological Corporation in Jilin Province when developing the project of JiLiang Group Office Automation. "S" is the first letter of English word "structure"; Build fetches its English original meaning. S-Build is a frame based on MVC design pattern; it has some advantages like components' modularization, flexibility and reusable quality. At the same time, it also simplified the development of web application program based on MVC. S-Build has clearly distinguished control, affair logic and view, thus it simplified the process of developing application program. The classes that S-Build offered make the development simpler, these classes include: Classes of controlling flow of the program; Classes of implementing and performing affair logic; Another classes. S-Build was developed by using J2EE technology like Java servlet, JSP, etc. It uses XML file as configure file. S-Build can lighten the time-consuming and complaining work when establishing a new project by standard technology and software development method like "filling a vacancy". The foundation of S-Build frame consists of six package, they are package of TControl, package of TDataSet, package of Parlor, package of Business, package of XMLFile and package of ExceptionFile. S-Build has been divided into six projects while developing. In addition, S-Build also includes four XML configure file: action-config...
Keywords/Search Tags:MVC, design pattern, Struts, S-Build, development of web application
PDF Full Text Request
Related items