The Integration of Struts2, Spring3, Hibernate3 and Ajax Based on JavaEE Multi-layer Architecture
- Author
- WangXiangBing
- Advisor
- ZhangShengWen
- School
- Dalian Maritime University
- Major
- Management Science and Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 611
- Citations
- 9
Abstract
With the development of software technology,reusable,scalable and easy to well-tested software components,are more and more popular for developers.In Which the most popular are Struts,Spring and Hibernate frameworks.However,with the coming of WEB 2.0 era,Ajax technologies bring our enterprise’s developers a higher customer satisfaction.It is inevitable that Ajax framework is attention,therefore the design of SSH+Ajax framework based on MVC model is a very practical significance.MVC pattern,which separated the data access layer and data presentation layer, provides a better decoupling and a distinct advantage in the realization of multi-layered Web applications.Struts2 is an excellent realization based on the controller layer and the presentation layer of MVC pattern.And it not only provides a flexible and natural way of the controller distribution,and also provides a powerful label presentation technology,and sets aside interfaces for other frameworks in order to integrate facilitate.Spring is another excellent framework mainly based on the thinking of IoC and AOP.It is easy to achieve the assembly of Java Bean and transaction management, and at the same time it provides a unified interface for different data access technology.Hibernate framework is an ORM(Object/Relational Mapping) tool.It not only can manage the Java objects mapped to database tables,also provides methods of data query and access to data,which can significantly reduce the time of using SQL and JDBC technology to access to data manually.Ajax framework provides us a better and more flexible developing in the enterprise web applications,and it also can increase the development of satisfaction and work out problems in the Struts framework or Spring framework in order to complete software development.This paper,based on in-depth study of the various frameworks’ system theory and design patterns,aiming at that presentation layer and Business Logic layer,Business Logic layer and Data layers can not be completely separated,will design a framework based on MVC,which mainly in Struts2,Spring3,Hibernate3 framework,Ajax framework as a supplement,and introduced Spring’s IoC technology and Annotation technology in java 5’s new features.It reduces the dependency between modules through the use of IoC thinking,and greatly reduces amounts of application codes, improve the efficiency of the application through the use of Annotation technology in POJO.It will bring the thinking of AOP in struts2 to the development of enterprise web application in order to the separation of business logic code and the basic operational code(cross-business code),improve the system code reusability,maintainability and readability,Finally we will use this integrated framework to complete an actual ERP project on Dalian XinLun enterprise.The result shows the system does not depend on platform and has the characteristics of high maintainability,expansibility and reusability.
Table of contents
Abstract 5-6
Abstract 6-10
Chapter 1 Introduction 10-14
1.1 subject background and significance of 10-11
120 research status 11-12
1.3 main content 12-13
1.4 thesis chapter structure 13-14
Chapter 2 Enterprise Application Architecture and WEB application framework 14-45
2.1 Enterprise Application Architecture, Development 14-16
2.2 MVC design pattern 16-18
2.3 Struts2 framework 18-25
2.3.1 Struts2 About 18-19
2.3.2 Struts2 core component 19-24
2.3.3 the Struts2 works 24-25
2.4 Spring framework 25-30
2.4.1 Spring the basic structure 26-27
the core mechanism of the
2.4.2 Spring IoC and AOP 27-30
2.5 Data Persistence with Hibernate 30-40
2.5.1 Data Persistence and ORM 30-31
2.5.2 Hibernate Architecture and 31-40
2.6 Ajax Framework 40-45
2.6.1 Introduction to Ajax and RIA 40-41
2.6.2 Ajax work 41-42
2.6.3 Ajax framework Profile 42-45
Chapter 3
Struts2, Spring3, Hibernate3 and Ajax-based Web application framework designed 45-67
3.1 Web application hierarchy 45-49
3.1.1 presentation layer 47-48
3.1.2 Business Logic Layer 48
3.1.3 data persistence layer 48
3.1.4 domain model layer 48-49
3.2 SSH Ajax composite frame of the overall design 49-61
3.2.1 SSH Ajax framework for the overall design 49-51
3.2.2 Struts2 and Spring integration 51-54
3.2.3 Spring and Hibernate integration 54-57
3.2.4 SSH and Ajax integration 57-61
3.3 SSH Ajax composite frame of the specific design 61-67
3.3.1 Web presentation layer design 61-62
3.3.2 Business Logic Layer Design 62-63
3.3.3 data persistence layer design 63-65
3.3.4 domain model layer design 65-67
Chapter 4, based on the SSH Ajax framework for ERP Design and Implementation 67-87
4.1 Project Profile 67-69
4.2 domestic and international sales order management, demand analysis 69-72
4.2.1 domestic and international sales order management business needs 69
4.2.2 System Use Case Diagram and Activity Diagram 69-72
4.3 system to achieve 72-87
4.3.1 presentation layer implementation 74-81
4.3.2 The business logic layer to achieve 81-82
4.3.3 data persistence layer 82-84
4.3.4 domain model layer 84-87
Chapter 5 Summary and outlook 87-89
References 89-92
published papers during the study for a degree 92-93
thank 93-94
graduate resume 94
Related dissertations
- The Design and Realization of Online Recruitment System Based on SSH2and AJAX Technology
- Design and Implementation of the IIP lightweight J2EE - based the CRBT integration platform
- Research and Application of Java Lightweight Framework in Occupational Skill Testing Authority System
- The Application of Struts in Cooperative Office System Based on MVC Pattern
- Research and Application Based on SSH2and JBPM for J2EE Develop Platform
- The Research of Java EE Framework and Designed on the E-Commerce Pattern of OAO
- The Design and Implementation of Vehicle Tracking Management System
- Design and Implementation of Small Business Human Resource Management Information System
- Design and Implementation of the Logistic and Transportation Management System
- Design and Implementation of the Manufacturing Enterprise OA System Based on SSH2Framework
- Design and Implementation of High Performance Computing Service Management Platform Based on JavaEE
- The Design and Implementation of College Students' Party Information System Based on the SSH
- The Design and Implementation of Tobacco Platform of Quality Management Based on JavaEE
- The Design and Implementation of Online Bookstore
- Design and implementation of student network report system based on Lightweight Framework
- The Design and Implementation of Printing and Dyeing Production Information System Based on S2SH
- Research and Implementation of Online Customer Service Platform Based on Asynchronous Processing Framework
- Application and Study of Ssh Frame Techlology in the Supermarket Management System
- Design and implementation of SSH2 framework based on internal OA system of Jiangxi Construction Bank
- The Development of Agent Order Management System Based on J2EE