Investigation of Struts and Hibernate Based J2EE Web Application
- Author
- ZhangGuoLiang
- Advisor
- ZhuMin
- School
- East China Normal University
- Major
- Applied Computer Technology
- Classification
- TP311.10 Programming
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 422
- Citations
- 13
Abstract
A successful software need a same successful framework, however, the establishment of the software framework is a complicated and continually improving process. It is impossible for the software explorers to work out different framework for different projects, while, they always try to utilize the existing framework or, explore the general used framework.The appearance of all the new technologies bring the new opportunity to the application of J2EE Web, meanwhile, it also raise the biggest doubt to engineers, that is, how to select from all technologies and establish system framework, according to the requirement of the project and considering all the factors, such as the role division in the course of development, the management and maintenance in the anaphase and the expansibility of the systems, and so on.The strong J2EE is a large and complicated enterprise application system. All kinds of Web applicable service frameworks flourish accordingly, which provides considerable convenience to the development of applicable service for the researchers. Strong enterprise application systems rely on the mature framework, and using mature framework can largely reduce the workload due to repeating development, shorten the time period for development and even lower the cost, while using immature framework, a slight more in one part may affect the situation as a whole, which will result in serious consequences and cause the large waste of labor and material resources.Being an excellent MVC application framework based on J2EE, Struts is more and more often applied in enterprise platforms. A great number of website have successfully applied Struts framework. On the other hand, the rise of database ORM technology brings heavy pressure to EJB/CMP in the specification of J2EE, its irrationality in design doomed the failure of EJB/CMP. Among all the ORM technologies, Hibernate stands out with numerous advantages and enjoys favor of insiders, therefore, a J2EE framework based on Struts+Hibernate emerges as the times require.This framework is a flawless combination: the MVC framework of Struts creates code repetition which never reached before and clear code structure, and on the other hand, ORM property of Hibernate makes it
Table of contents
Abstract 6-7
Keywords 7-8
Abstract 8-10
Key Words 10-11
key terms abbreviations bilingual table 11-12
directory 12-15
an Introduction 15-18
1.1 Background nbsp the status quo; 15-16
1.2 J2EE Web application 16
1.3 The main research work 16-17
1.4 This paper is organized structure 17 -18
J2EE Web application infrastructure 18-25
2.1 J2EE specification 18-19
2.2 the common J2EE Web development technologies introduced 19 - 24
2.2.1 Servlet technology 19-21
2.2.2 JSP technology 21-22
2.2.3 EJB technology 22-23 < br /> 2.2.4 XML markup language 23-24
2.3 Chapter Summary 24-25
three Struts mode Overview 25-31
3.1 MVC framework introduced 25-27
3.1.1 View 25-26
3.1.2 model 26
controller 3.1.3 nbsp it; 26
3.1.4 Why use MVC 26-27
3.2 Struts framework principles and basic structure: 27-29
3.2.1 View 27-28
3.2.2 Model 28
3.2.3 Controller 28-29
3.3 Struts advantages and disadvantages 29 <br / > 3.4 Why use Struts framework 29-30
3.5 Chapter Summary 30-31
four Java object persistence technology 31-42
4.1 the hierarchical structure of the J2EE application 31-32
4.2 multi-tier application persistence layer 32
4.3 object persistence concept 32-33
4.4 Hibernate mode 33-38
4.4.1 Hibernate Overview 33-34
4.4.2 Hibernate API and its core interface 34-35
4.4.3 Hibernate implementation and database unrelated and 35-37 the
advantage of 4.4.4 Hibernate 37-38
4.5 Other popular object persistence technology 38-41
the 4.5.1 JDBC mode of 38
4.5.2 JDO mode the CMP mode 38-40
4.5.3 40-41 < br /> 4.6 Chapter Summary 41-42
Five architecture design 42-48
5.1 Model 1 and Model 2 42-43
5.1.1 Model 1 (Model 1) 42-43
5.1.2 model (Model 2); nbsp 43
5.2 JSP Servlet JavaBean architecture-based systems; nbsp 43-44
5.2.1 Architecture 43-44
5.2.2 Architecture scope of 44
5.3 based on Struts Hibernate's architecture 44 -47
5.3.1 System Architecture Figure 44-46
5.3.2 System Architecture hierarchical description 46-47
5.3.3 operational processes 47
5.4 Chapter Summary 47-48
the six venues reservation system to achieve 48-62
6.1 Struts application configuration 48 - 50
6.1.1 web.xml configuration 48
6.1.2 configure Struts-config.xml 48-50
6.2 data persistence layer 50-55
6.2.1 Hibernate configuration file 50-52
6.2.2 HibernateAPI database operations are found; 52-55
6.3 check processing nbsp 55-58
6.3.1 Check the type; to the 55
6.3.2 struts framework XML-Validator checks 55-56
6.3. 3 in the Action to write code to check 56-57
6.4.4 The system check type 57-58
6.4 message processing 58-60 < br /> 6.4.1 system prompt message 58
6.4.2 validation failure message 58-59
6.4.3 message storage and coding 59
6.4.4 of the system message 59-60
6.5 exception handling 60-61
6.5.1 Exception Handling Fundamentals 60 < br /> 6.5.2 This system uses exception handling mechanism 60-61
6.6 Chapter Summary 61-62
Seven key technologies and solutions 62 -72
7.1 Hibernate in a database table primary key solutions nbsp 62-64
7.1.1 Hibernate primary key; 62-63
7.1.2 solution 63-64
Struts in the 7.2 development solutions from the definition of taglib 64-69
7.2.1 Why develop a custom label (taglib) 64 < br /> 7.2.2 develop the taglib 64-65
7.2.3 configure your own taglib nbsp 65-66
7.2.4 The system developed label instance ; 66-69
7.3 J2EE application internationalization solutions 69-70
7.3.1 internationalization 69
7.3.2 Chinese garbled solution way 69-70
7.4 Hibernate application batch delete performance optimization 70-71
7.4.1 Batch delete and Improvement 70-71 <br / 7.4.2 Performance test conditions nbsp 71
7.4.3 test data and results; 71
7.5 Chapter Summary 71-72
VIII, Summary and Prospects 72-74
8.1 This article summarizes 72
8.2 Further work 72-74 the
refer to literature 74-77 < br /> Acknowledgements 77-78 the
studying degree during academic papers published directory 78
Related dissertations
- Retailers Membership Card Management System Design and Implementation
- 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
- 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
- Design and Implementation of University Student Employment Information Sharing Platform of Cucn
- Design of the Jiujiang Institute of Financemanagement System
- Design and Implementation of Intelligent Management System of Assets
- B/S Based Online Book System Management Module Design and Implementation
- Design and Implementation of Grouting-Management Information System Based on Struts and Hibernate
- The Design and Implementation of Contingency Plans and Resources Management System for Shijiazhuang City
- Research and Design of SSH-based University Equipment Share Management Platform
- Design and Implementation of Material Management System
- The Design and Implementation of Material Supply Managerment in Fengfeng Group
- The Design and Implementation of Housing Rental Information Management System Based on J2EE
- Design and Implementation of Community Information Service Platform: iHOM
- The Design and Implementation of a Management Platform of Service in the Catering Industry Based on SSH2Frame Mode
- Design and Implementation of Office Automation System for Dongyuan Company
- Design and Implementation of a Supply Chain System for Manufactural Enterprise