Research and Implementation of Building Web Application Based on Struts and Hibernate
- Author
- ZhaoXiaoSui
- Advisor
- LiJianMin
- School
- Nanchang University
- Major
- Communication and Information System
- Classification
- TP311.10 Programming
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 260
- Citations
- 6
Abstract
With the rapid development of network and the wide use of J2EE platform, the multi-layer Web structure based on B/S becomes the mainstream of the Web application. But there are still several disadvantages as low software reusability and difficult maintenance in exploitation. Therefore, how to organize software by using a better architecture、good design patterns and reusable framework in developing Web application has become one of hot spots in the development of Internet technology and a field that is well worth studying.Struts is one of the most popular frameworks in Web application, it combines a group of cooperated class、Servlet and tag library into a united framework, which brings the ability of MVC into full play. Therefore, Struts can divide any complicated Web application into Model, View and Controller, which help us improve reusability and expandability of application. Besides, as an excellent persistent layer framework, Hibernate provides powerful object to relational data mapping service, which makes operation full object-oriented with the mapping mechanism. Consequently, it will be helpful to decrease the difficulty of exploitation greatly in business model by taking advantage of Hibernate to support the Model part of Struts. This paper integrates Struts with Hibernate and provides an entire solving scheme of enterprise application which is flexible to exploit, low coupling and easy to maintain.This paper firstly describes the architecture and principle of Struts framework basing on the introducing of the ordinary model of Web systems exploitation and MVC model. Secondly, through posing the conception of data persistence layer, this paper introduces the operating mechanism of Hibernate. Thirdly, through an example of applying Struts and Hibernate framework to Management System of Reimbursement in Socialized Medicine, this paper analyzes in detail the application of Struts and Hibernate framework into practical developing process. At last, it improves the query cache of Hibernate and has got a satisfied result through testing.
Table of contents
Abstract 3-4
ABSTRACT 4-8
The first chapter 8-11
1.1 project background 8-9
1.2 research 9
1.3 significance 9-10
1.4 organizational structure 10-11
Chapter MVC design pattern and Struts framework technology 11-18
2.1 Java Web application development, the general model 11-12
2.1.1 JSP Model1 11
2.1.2 JSP Model2 11-12
2.2 MVC design pattern 12-14
2.2.1 MVC framework 12-13
2.2.2 MVC processing 13
2.2.3 MVC model has the advantage 13-14
2.2.4 MVC scope 14
2.3 Struts Framework Overview 14-18
2.3.1 Struts architecture 14-15
2.3.2 Struts core components 15-16
2.3.3 Struts MVC relationship with 16-18
Chapter Java object persistence and persistence layer design 18-25
3.1 object persistence 18
3.2 data persistence layer introduction 18-19
3.3 ORM Overview 19-22
3.3.1 ORM concept 19-20
3.3.2 ORM implementation 20-21
3.3.3 advantages of using an ORM 21-22
3.4 program lasting several mainstream comparative 22-25
3.4.1 JDBC technology 22-23
3.4.2 EJB Entity Bean 23-24
3.4.3 JDO technology 24-25
Chapter Hibernate technology 25-36
4.1 Hibernate Overview 25
4.2 Hibernate architecture 25-28
4.2.1 Hibernate overall structure 25-26
4.2.2 Hibernate programming interface 26-28
4.3 Hibernate basic application steps 28-33
4.3.1 Hibernate configuration 28-29
4.3.2 persistent class 29
4.3.3 object-relational mapping 29-32
4.3.4 through Hibernate API to manipulate the database 32-33
4.4 cache design 33-36
4.4.1 Hibernate and data cache 33
4.4.2 Hibernate data cache implementations 33-36
Chapter medical reimbursement management system design 36-49
5.1 Project Description 36-38
5.1.1 Overall system functional description 36-37
5.1.2 detailed functional description of each module 37-38
5.2 system design 38-41
5.2.1 System Features 38
5.2.2 design requirements 38-39
5.2.3 JSP Servlet JavaBean architecture based system design 39-40
5.2.4 Struts Hibernate-based system designs 40-41
5.3 System Architecture 41-43
5.3.1 layered design 41-43
5.3.2 layers collaboration 43
5.4 Detailed design 43-49
5.4.1 lasting physical design 43-47
5.4.2 Medical expenses reimbursement process 47-49
Chapter VI medical reimbursement management system implementation 49-72
6.1 environment configuration 49-50
6.1.1 development environment 49
6.1.2 Hibernate configuration file 49-50
6.2 data persistence layer implementation 50-58
6.2.1 Creating persistent classes 50-51
6.2.2 Design of the common parts of the DAO pattern 51-53
6.2.3 Create Object - relational mapping file 53-54
6.2.4 manipulate persistent objects 54-58
6.3 Yewuluojiceng achieve 58-60
6.4 presentation logic layer implementation 60-62
6.5 system running 62-65
6.5.1 System Deployment 62
6.5.2 running interface 62-65
6.6 Hibernate query caching mechanism to improve 65-72
6.6.1 Semantic Caching workflow 65-66
6.6.2 query cache entries matching 66-67
6.6.3 Query tailoring 67-69
6.3.4 semantic caching query processing algorithms 69-70
6.3.5 Performance Analysis 70-72
Chapter VII summarizes 72-73
Thanks 73-74
References 74-76
pursue a degree during the research 76
Related dissertations
- Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System
- Design and implementation of no warehousing logistics management platform based on SSH
- Retailers Membership Card Management System Design and Implementation
- Design and Implementation of University Student Employment Information Sharing Platform of Cucn
- Design and Implementation of Personnel Management System
- Design of the Jiujiang Institute of Financemanagement System
- Design and Implementation of Management Information System of Public Security Bureau of Changsha City
- Design and Implementation of Zhejiang Haoleduo Commercial&Trading Co. Ltd. Human Resource Management System (HRMS)
- B/S Based Online Book System Management Module Design and Implementation
- Design and Implementation of Grouting-Management Information System Based on Struts and Hibernate
- Research and Implementation of a Human Resource Management System Based on XX Company
- The Design and Implementation of Agricultural Information Service Platform of Wei Fang City
- The Design and Implementation of Booking Register System for Zaozhuang Mining Group General Hospital
- The Design and Implementation of Freight Management System for Weifang City Department of Transportation
- Design and Implementation of Foreign Trade Order Management System
- The Design and Implementation of Tobacco Monopoly Bureau Internal Control Information System for Shandong Province
- The Design and Implementation of Competitive Procurement Management System of Sinopec-Honeywell for Tianjin
- The Design and Implementation of BBS Forum System Based on Java
- The Design and Implementation of Contingency Plans and Resources Management System for Shijiazhuang City
- The Implementation of Office Automation Based on Osworkflow and Open Source Frame