Design and Realization of Web Application Based on Struts and Hibernate

Author
DuWenYi
Advisor
HuangZhangCan
School
Wuhan University of Technology
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
211
Citations
3

Request the full text

Abstract

In the Web system design, as the business becomes more and more complex, people are always focusing on how to enhance the system’s efficiency, reusability, extendibility and maintainability and how to reduce the cost of construction and maintenance. The software construction’s establishment is the process which is complex and improves continually. The developers try their best to reuse the former framework, Struts and Hibernate is just two outstanding development frameworks in all frameworks. Apache Struts is a classical web framework, which is based on J2EE platform and implements the MVC design pattern. It has provided its controller module and the conformity J2EE correlation technique has been used in model module and the view module model of realizing the MVC design pattern. The Struts framework has separated the data control and the data performance effectively, has overcome the inherent malpractice of traditional Web application development way, has adapted more and more complex multi-layer Web application system’s design demand, and has provided vigorously, healthily and the stable service for developing and disposing the enterprise application. Hibernate is also one kind of new ORM (Object Relational Mapping) development framework, it has not only provided the mapping from the Java kind to the database, also has provided the data inquiry and restore mechanisms and so on.The paper has developed a shopping website system, which is precisely based on the basic principle of Struts and Hibernate’ two frames. The full text is altogether divided into six chapters, the paper’ prime task is as follows:1 Firstly briefly introduced the paper’ research background, the research content and the research significance.2 Then elaborated Struts and Hibernate’s basic principle and their technical superiority in detail. Through geting the two constructions conformity, we may obtain a system which is development nimbly, low coupling and easy to maintain.3 Then taking the shopping website system as the example, elaborated this system’s demand analysis, described system’s role and jurisdiction control, introduced system’s overall frame and the service module’s division situation, analyzed each service module’s corresponding service function and service flow.4 Closely realized the shopping website system and solved some problems which exist in this system, which is resting on these two big frame’ basic principle of Struts and Hibernate and the aid to system’s demand analysis.5 In the 5th chapter it has carried on the deployment to the system in detail and has given this system’s movement process according to the configuration files of Struts and Hibernate.6 Finally has carried on the summary to the full text, has pointed out system’s insufficiency as well as the future study direction.The article’ findings proved that the J2EE Web’s application and development that are based on Struts and Hibernate has the very good feasibility. In the process of development, these two big frames’ basic principle of Struts and Hibernate has provided the important theoretical foundation for this system’s realization, also has established the solid cornerstone for the actual enterprise developement.

Table of contents

Abstract 4-5 Abstract 5-9 Chapter 1 Introduction 9-12 1.1 topics background 1.2 research 9-10 1.3 Research Significance 10 1.4 paper innovation at 10-11 1.5 organizational structure 11-12 Chapter 2 Struts and Hibernate principle 12-24 2.1 Struts framework technology 12-18 2.1.1 Struts framework structure 12-14 2.1.2 of the Struts major components 14-15 2.1.3 Struts workflow 15-16 2.1.4 Struts development process 16-17 2.1.5 Struts advantages and disadvantages 17-18 2.2 Hibernate framework technology 18-24 2.2.1 Hibernate ORM mechanism 18-19 2.2.2 Hibernate principle 19-20 2.2.3 Hibernate core interface 20-21 2.2.4 object lifecycle 21-23 2.2.5 data query mechanism 23-24 the of Chapter 3 shopping site system requirements analysis 24-38 3.1 project requirements 24-25 3.2 project system analysis and design 25-33 3.2.1 database design 25-29 3.2.2 object-oriented analysis and design 29-33 3.3 development tools and environments 33-36 3.4 project participation role 36-38 Chapter 4 shopping system based on Struts and Hibernate implementation 38-60 4.1 presentation layer implementation 38-39 4.2 extended ActionServlet class 39-40 4.3 business data 40-45 4.3.1 design domain model 40-41 4.3.2 Design relational data model 41-42 4.3.3 create objects - the relationship mapped file 42-45 4.4 to business logic 45-57 4.4.1 business agent interface 45-47 4.4.2 factory class business agent instance 47-49 4.4.3 login module 49-50 4.4.4 order business to achieve 50-53 4.4.5 SessionContainer model components 53-54 4.4.6 ShoppingSystem system to use the built-in class 54-57 4.5 ShoppingSystem system HQL retrieval methods 57-58 4.6 ShoppingSystem application of Chinese solution 58-60 Chapter 5 system deployment and running 60-70 5.1 system deployment 60-68 5.1.1 the web.xml file system configuration 60-64 5.1.2 struts-config.xml file system configuration 64-68 5.2 running 68-70 Chapter 6 Summary and Outlook 70-72 6.1 paper summarizes 70 6.2 Job Outlook 70-72 the References 72-74 Acknowledgements 74-75 studying for a degree during the research 75-76 attachments 76-79

Related dissertations

  1. Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System
  2. Retailers Membership Card Management System Design and Implementation
  3. Design and Implementation of University Student Employment Information Sharing Platform of Cucn
  4. Design and Implementation of Zhejiang Haoleduo Commercial&Trading Co. Ltd. Human Resource Management System (HRMS)
  5. Research and Implementation of a Human Resource Management System Based on XX Company
  6. The Design and Implementation of Contingency Plans and Resources Management System for Shijiazhuang City
    GongZuo ·Shandong University ·2013 ·Master's thesis
  7. Design and Implementation of a Supply Chain System for Manufactural Enterprise
    ZhangZhiYou ·Northeastern University ·2011 ·Master's thesis
  8. Design and Implementation of Huafeng Company Integrated Office System
  9. Design and Implementation of Fire Police Dispatch System Based on Java Technology
  10. The Design and Realize of Hotel Capital Asserts Management System Base on the J2EE Platform
  11. Personnel salary management system based on WEB application
  12. Design and implementation of no warehousing logistics management platform based on SSH
  13. The Research and Application of Web Framework based on Lightweight J2EE
    ZengGuangPing ·Sun Yat-sen University ·2013 ·Master's thesis
  14. RCP-based Integrated Online Teaching and Management System Design and Implementation
  15. Design and Implementation of Online Shopping System Based on Struts
  16. Design and Implementation of Personnel Management System
  17. Design of the Jiujiang Institute of Financemanagement System
  18. Design and Implementation of Management Information System of Public Security Bureau of Changsha City
  19. Design and Implementation of Intelligent Management System of Assets
  20. B/S Based Online Book System Management Module Design and Implementation
    HuQiaoLing ·Jiangxi Agricultural University, ·2012 ·Master's thesis