Application and Research of Struts Framework in J2EE Information System Development
- Author
- ZhangXiaoMei
- Advisor
- YinZhiBen
- School
- Southwest Jiaotong University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 253
- Citations
- 6
Abstract
With the rapid development of network and the wide use of J2EE platform, multilayer web architecture based on B/S has been developed and becomes mature. But, there are still several disadvantages in the design of multilayer web architecture like low software reusability, fussy maintenance and weak flexibleness etc. Therefore, how to organize software and use a better architecture, good design pattern and reusable framework to develop web application has become a hotspot of the development of Internet technology and also a worthy question to discusss which can make programming easy also with high efficiency, good maintenance and strong expansibility.As an open source web framework, Struts framework is a standard implementation of MVC and several J2EE kernel design patterns. It provides a reusable software framework and makes it easy to build multilayer web application.An in-depth study of the application of Struts framework in web system is made in this thesis. Firstly, J2EE architecture is introduced and MVC design pattern is also analyzed. Secondly, web application framework is discussed, as well, the factors which affects the choosing of web-layer framework and the significance of using framework for software developing are summarized. The architecture .work flow and developing flow of Struts framework are researched wholly. The adavantage and disadvantage of Struts framework are summarized through the analyzing and comparing of Struts, JATO, JSF and Spring framework.Based on the research done above, firstly, the requirement analysis and design of the system is done with UML according to the features and actual requirement of Traffic Information Service System for Public Travel. The architecture of the system is built based on Struts framework. Secondly, the procedure of the implementation of Traffic Information Service System for Public Travel based on Struts is illustrated in detail. The work that how to construqt the Model, View, Controller and how to conf ig them is illustrated with emphasis. Besides,a solution for common problem of Chinese disorder in word processor and word display is presented .As well, a pagination method for web data display is presented. A system test solution for the system is brought forward, Using this test solution, the functionality, the performance and the integrality of web application can be tesed effectively. Lastly, because of the disadvantage of Struts framework that Struts controller and web container have so close coupling that Struts Action can’ t be tested in unit with lightweight, an ameliorative method using Context Encapsulation pattern is brought forward and also validated in the this system.
Table of contents
Chapter 1 Introduction 9-12
1.1 subject background
1.2 research status 9-10
1.3 This paper work done and structural arrangements nbsp 10-12
Chapter 2 J2EE architecture and the MVC pattern; the 12-21
2.1 Web application architecture overview 12-13 <br / > 2.2 J2EE system structure 13-15
2.2.1 J2EE four model the 13-14 2.2.2 J2EE core technology
14-15 <br / > 2.3 MVC design pattern 15-21
2.3.1 MVC pattern works 16-17
2.3.2 MVC's advantages and disadvantages 17-18 Scope
2.3.3 MVC pattern 18-19
2.3.4 JSP Model1 with JSP Model2 19-21
Chapter 3 WEB-tier application framework- the STRUTS Framework Research 21-33
3.1 framework the 21-24 3.1.1
impact web layer application framework factors
3.1 22-23 .2 framework for software development significance 23-24
3.2 Struts framework 24-29
3.2.1 Struts architecture 24
3.2 nbsp mechanism .2 Struts implements the MVC; 24-27
3.2.3 Struts workflow 27-29
3.2.4 Struts development process 29
3.3 JATO other Web tier framework, JSF, Spring MVC 29-31
3.4 the STRUTS framework advantages and disadvantages 31-33
3.4.1 Struts framework advantages 31
3.4.2 Struts framework shortcomings 31-33
Chapter 4 based on UML and STRUTS System Analysis and Design 33-42
4.1 Summary of Background 33
4.2 System Requirements Specification 33-35
4.3 based on the UML system overall demand analysis 35-38
4.3. a system use case analysis 35-36
4.3.2 tourism service module function analysis 36-38
4.4 system design 38-42
4.4. The three-tier structure of the system design 38-39
4.4.2 Struts-based system architecture design 39-40
4.4.3 system package design 40-41
4.4.4 system network topology 41-42
Chapter 5 STRUTS-based travel services sub-module 42-64
5.1 System Development environment select 42-43
5.2 travel service module the 43-55 view
5.2.1 build 44-49
5.2.2 the controller build 49-52
the 5.2.3 model building and get 52-55
5.3 configuration information systems of public transport service 55-58
5.3.1 configuration web.xml file 55-56
5.3.2 configure Struts-Config.xml files are found; 56-58
5.4 system to achieve solutions to common problems in program Chinese localization (Chinese solution) 58-62
5.4.1 Web application the 5.4.2 data paging solution 58-59
59-62
5.5 project experience summed 62-64
Chapter 6 system test, release, run the 64-73
6.1 System Test 64-71
6.1.1 overall program 64-65
6.1.2 local test 65-67
6.1.3 overall performance test 67 -69
6.1.4 the Struts Action lightweight unit testing improvements 69-71
6.2 system release and run 71-73
6.2.1 system Publish the 71-72
6.2.2 system running 72-73
Summary and Outlook 73-75
Acknowledgements 75-76
Reference 76-81
papers published during the study for master and scientific research 81-82
Appendix 82-86
Related dissertations
- A Design and Development of Operation and Maintenance System for Zhejiang Social Security Center
- Books Management System of Vocational School Based on the J2EE Multi-layer Framework
- Design and Implementation of Fire Police Dispatch System Based on Java Technology
- Research and Application of Enterprise Information System Based on J2ee Architecture Platform
- The Design and Realize of Hotel Capital Asserts Management System Base on the J2EE Platform
- Design and Implementation of Guangfa Fund CRM System
- Design and Implementation of Communication Billing System Basing on J2EE
- Retailers Membership Card Management System Design and Implementation
- 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
- Design and Implementation of a District Monitoring and Management System
- Design and Implementation of the Editorial Department Management Information System Based on B/S Architecture
- Design and Implementation of China Three Gorges University OA System Based on SSH
- Design and Implementation of Tax File Management Information System
- Design and Implementation of Intelligent Management System of Assets
- Design and Implementation of Zhejiang Haoleduo Commercial&Trading Co. Ltd. Human Resource Management System (HRMS)
- Design and Implementation of Media Asset Management System of the Radio and Television
- Design and Implementation of Online Approval System