Research and Implementation of Web Application Based on MVC Design Pattern
- Author
- BiJianXin
- Advisor
- RanChunYu
- School
- Wuhan University of Technology
- Major
- Applied Computer Technology
- Classification
- TP393.09 The application of computer network
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 391
- Citations
- 30
Abstract
In recent years, the network technology has been developed quickly and the platform of J2EE(Java 2 Enterprise Edition) has been adopted extensively. And the mufti-layer web architecture based on B/S pattern matures gradually. At the same time, with software function demanding higher and higher,and application range being more and more extensible, it appearances a lot of problems such as repetitive development and difficult maintenance. Web application becomes more and more complex. Thus, how to farthest realize "reuse", including reuse of code, reuse of thinking, reuse of design and reuse of resource, which can increase efficiency and develop high-quality software.Consequently, we introduce the conceptin of design patten. What is called design pattern, it refers to the reuse of successful solution, which adequately embodies the reuse of thinking. MVC(Model-View-Controller) pattern can overcome disadvantages of traditional web application development fashion. It separates the control of data and the view of data so as to meet the demand to the mufti-layer web application complicated more and more. So MVC pattern is the first choice of developing the J2EE web application.Being a embodiment of MVC design pattern, Apache Struts is a prevalent framework in establishing current Web design field based on JSP, Servlet, XML technology. So it is a classical MVC design pattern framework. Model is made up of JavaBean or EJB that implement the business logic. Controller is constituted by ActionServlet and Action. A group of JSP files constitute view. The framework lightens the burden to construct the mufti-layer web application and provides components which can be reused. The design of the strutsconfig.xml and the configuration file is an important part for the struts framework. Struts provides controller component and integrates other related technologies to implement the model component and view component of MVC pattern. Struts is fit for all kinds of projects especially for large ones which can embody more advantages of struts.This thesis analyzed the advantages to set up the web application system based on J2EE platform firstly. Then it studied the MVC pattern and struts framework based on the MVC. Finally it introduced the whole process about the design and realization of Intelligent Building OAS’S enterprise inner information management system based on struts framework, which included demand analysis, system design, system realization. The paper laid emphasis on system realization. Firstly, IDE (Integrated Development Environment) was choosed and database was constructed. Secondly, the paper described how to use struts to implement the model, view, controller for MVC and how to deploy two important files, web.xml and struts-config.xml.According to depiction of the thesis, using the pattern of Struts MVC based on J2EE in the development of Web application, which can simplify the work of each stage, normalize the development of whole system, increase the code quality and the system efficiencies, make the system have many advantages, such as able to cross platform, easy to be extended and maintained etc. The system manifests the technicaladvantages of J2EE architecture and MVC pattern. This project can be a reference to the same kind web application development.
Table of contents
Abstract 3-4
Abstract 4-6
directory 6-8
Chapter 1 Introduction 8-11 <br / > 1.1 research purpose and meaning 8-9
1.2 development in the world 9
1.3 the main work 9-10
1.4 this paper is organized 10-11
Chapter 2 Web application Overview 11-24
2.1 Web application Architecture 11-14
2.1.1 C / S architecture 11
2.1.2 B / S architecture 11-12
2.1.3 N -tier architecture 12-14 <br / > 2.2 Web application components 14-20
2.3 J2EE 20-24
2.3.1 J2EE main features 20-21
2.3.2 J2EE architecture 21-24
Chapter 3 MVC design pattern 24-31
3.1 design Patterns Overview 24-25
3.2 MVC model structure 25-26
3.2.1 model (Model) 26
3.2.2 view (View) 26
3.2.3 controller (Controller ) 26
3.3 MVC advantage 26-27
3.4 Web application development model used 27-30
3.4.1 JSPModel 1 27-28
3.4.2 JSPModel 2 28-30
3.5 MVC pattern in J2EE platform to achieve 30-31
Chapter 4 Struts framework 31-40
4.1 Struts Introduction 31-33
4.2 Struts MVC implementation mechanisms 33-34
4.3 Struts basic components 34-39
4.3.1 ActionServlet 34-36
4.3.2 Action 36
4.3.3 ActionForm 36-39 <br / > 4.3.4 ActionMapping 39
4.3.5 ActionForward 39
4.4 Struts workflow 39-40
Chapter 5 MVC pattern in the smart Building OAS in the implementation 40-60
5.1 system Overview 40
5.2 system analysis 40-43
5.2.1 system module division 40-41
5.2.2 system Architecture 41
5.2.3 system Development Platform 41-42
5.2.4 application server selection 42-43
5.2.5 database server selection 43
5.2.6 development environment 43
5.3 president of design 43-46 <br / > 5.3.1 requirements Analysis 43-45
5.3.2 functional design 45
5.3.2 database design 45-46
5.4 detailed design 46-60
5.4.1 database connection pool 48-49
5.4.2 model class design 49-53
5.4.2.1 Affairs object Class 50-51
5.4.2.2 application object class 51-53
5.4.3 controller class design 53-54
5.4. 4 behavior class design 54-55
5.4.5 Struts application configuration file 55-60
5.4.5.1 web.xml file 55-57
5.4.5.2 struts-config.xml file 57-60
Chapter 6 Summary and Outlook 60-62
6.1 work 60 - 61
6.2 lack of work 61-62
References 62-64
pursue a degree papers published during 64-65 <br / > Thanks 65
Related dissertations
- Design and Implementation of Fire Police Dispatch System Based on Java Technology
- The Design and Realize of Hotel Capital Asserts Management System Base on the J2EE Platform
- Retailers Membership Card Management System Design and Implementation
- Design and Implementation of Intelligent Management System of Assets
- Design and Implementation of Zhejiang Haoleduo Commercial&Trading Co. Ltd. Human Resource Management System (HRMS)
- Research and Implementation of a Human Resource Management System Based on XX Company
- The Design and Implementation of Material Supply Managerment in Fengfeng Group
- Design and Implementation of a Supply Chain System for Manufactural Enterprise
- A Design and Development of Operation and Maintenance System for Zhejiang Social Security Center
- Design and Implementation of Huafeng Company Integrated Office System
- Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System
- Books Management System of Vocational School Based on the J2EE Multi-layer Framework
- Design and application of J2EE persistence layer framework DR-ORM
- Research and Application of Enterprise Information System Based on J2ee Architecture Platform
- Design and Implementation of Guangfa Fund CRM System
- Design and Implementation of Communication Billing System Basing on J2EE
- The Design and Implementation of Educational Management Information System Based on J2EE
- Research and Implementation of Logistics Management System Based on J2EE Architecture
- English Title of Master Thesis the Design and Implementation of Software System for Project Management
- Design and Implementation of DRP System of Wan Jiang Pharmaceuticals Company