The Research of Web Application Framework Based on MVC Pattern and J2EE
- Author
- MaYuQing
- Advisor
- MaGuangSheng
- School
- Harbin Engineering University
- Major
- Computer Software and Theory
- Classification
- TP311.10 Programming
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 298
- Citations
- 11
Abstract
At present, J2EE (Java 2 Enterprise Edition) that Sun Microsystems, Inc. put forward has already become the standard of enterprise development of Web application gradually. The SERVLET/JSP technology, which is one important part of J2EE, is widely used in numerous Websites too, However, if only JSP technology is used in Web application development, the business logic, java code and dynamic html would be mixed together, which results in low reusable degree of the program, makes maintenance tedious and difficult, and brings weak adaptability to changes. Therefore, a framework named Struts is introduced joined the MVC design pattern.Struts framework is an implementation of the MVC pattern based on J2EE.It separates interface and business logic, be in favor of the division between page designer and programmer and aided in code reusability and flexibility for components development. However, it exhibits several drawbacks: a developer can embed application logic into the JSP, which leads to applications that are hard to understand and maintain; The developer must learn new APIs ~ the Struts tag libraries and an understanding of the Struts tag libraries, can take a long time; The JSP syntax is not XML compliant and therefore fails to guarantee that resulting XML or HTML documents will be well formed. In the thesis, a new framework named Struts2X is presented to overcome these drawbacks, which enhances Struts by replacing JSP (JavaServer Pages) with XML and XSLT (Extensible Stylesheet Language Transformations).J2EE and the MVC pattern in Web application are introduced first. Then Struts framework is described in detail. In view of its drawbacks, a new framework named Struts2X is presented. Finally, a Web application is developed by Struts2X framework, and it proves that Struts2X provides better separate logic and presentation, and satisfies requests from several client sides and improves system extensibility.
Table of contents
Chapter 1 Introduction 9-13
1.1 the purpose and significance of the research 9-10
1.2 Web development of domestic and international developments 10-11 <br / > 1.3 The main research content 11-12
1.4 This paper is structured 12-13
Chapter 2 Web application development based on J2EE and MVC pattern 13 -27
2.1 J2EE architecture 13-19
2.1.1 J2EE Overview 13-14
2.1.2 J2EE distributed multi-tier application model 14-16
2.1.3 J2EE standard services the 16-18
2.1.4 J2EE application model advantages 18-19
2.2 MVC mode nbsp the concept of design patterns; 19-22
2.2.1 19-20
2.2.2 MVC mode J2EE Web development based on MVC pattern
2.3 20-22
2.3.1 Medel, 22-25 1 and Model 2 the 22-24 2.3.2 MVC pattern-based J2EE application
24-25
2.4 Chapter Summary the 25-27
Chapter 3 Apacbe Struts application framework 27-39
3.1 Overview of the Struts framework 27-30
3.1.1 model 28-29
3.1.2 view 29
3.1.3 controller 29-30
3.2 Struts framework detailing 30-34
3.2.1 Struts framework. configuration file the 30-32
3.2.2 Struts framework components 32-34
3.3 Struts framework of workflow advantages and disadvantages of the 34-37
3.4 Struts framework 37-38
3.5 Chapter Summary 38-39
Chapter 4 Struts 2X (Struts with XSLT and XML) model 39-55
4.1 Struts defects 39-41
4.1.1 the Struts brief review of the 39-40 < br /> 4.1.2 Struts and JSP limitations the 2X (Struts with XSLT and XML), 40-41
4.2 improved model-Struts Struts 41-52
4.2. 1 XML and the XSLT 41-43
4.2.2 Struts 2X model 4.2.3 Struts 2X 43-44
model detailing 44-52
4.3 Struts2X comparison with Struts the 52-53 4.4 Chapter Summary
53-55
5 Chapter Struts2X, model 55-70 < br /> 5.1 development environment 55
5.2 system design goals 55-58
the 5.2.1 online textbook subsystem 56
5.2.2 bookstore management subsystem 56-57
5.2.3 System structure diagram 57-58
5.2.4 system flow chart 58
5.3 system design 58-68
5.3.1, view part the 5.3.2 controller section 58-62
nbsp the 5.3.3 model part 62-63
; 63-67
5.3.4 System configuration 67-68
5.4 operating results 68-69
5.4.1 runtime environment 68
5.4.2 operating results the 68-69
5.4 This chapter section 69-70
conclusions to References 70-71
71-74
published papers and research during the study for master 74-75
Acknowledgements 75
Related dissertations
- Design and Implementation of a Supply Chain System for Manufactural Enterprise
- 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
- 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 Online Shopping System Based on Struts
- Design and Implementation of University Student Employment Information Sharing Platform of Cucn
- 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 Construction Project Construction Supervision Report Provided System for Weifang
- The Design and Implementation of Teachers Professional and Technical Qualification Declaration System for Shenzhen City
- The Design and Implementation of Subsidies for People with Disabilities Live Management System for Jinan City
- The Design and Implementation of Oil Supply Management System of the Ship
- The Design and Implementation of Contingency Plans and Resources Management System for Shijiazhuang City
- The Design and Implementation of Administrative Institution Bank Account Management System
- Design and Implementation of the Online Learning System for the C Language Based on the J2EE
- Design and Implement of University Logistics Management Information System
- The Design and Implementation of Material Supply Managerment in Fengfeng Group