Research and Application of Struts Framework Based on MVC Model
- Author
- ZhangChunHua
- Advisor
- YangBo
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 342
- Citations
- 8
Abstract
In today’s Internet age, in order to more easily and quickly design and develop Web applications, and to better solve the issue of business and display logic confusing in development process, Struts framework is referenced by based on MVC design pattern. Struts made a significant contribution to improve the development speed of Web application. If use Struts in the Web application, developers will save the time of start designing the framework, and then to concentrate on how to solve real business issues.Firstly, Struts and related technologies are detailed description to give readers the full understanding the role of Struts and related technology in Web application development. Then in according to an instance of the module in online bookstore to system, described the role of Struts in Web application, build up a complete, excellent Struts development framework.In this paper, the instance of the module named the online bookstore, which is based on J2EE multi-tier architecture to develop a Web application. In the base of fully understanding the system development background, after analyzing the advantages by compared with the traditional bookstore, we conducted a feasibility study on the system and to develop the overall framework of the system. The system include the user management module, which mainly to provide users with user name registration, modify personal information, and administrators operating functions which include both front and back-office processing, which mainly provide services front, the background to operate mainly by the administrator; Library management module, the administrator can remove and modify the information of books through this module, and new book information can be entered, displayed mainly in the list of books from the database query information; Book Search modules, administrator or general users can search and view the book information in the database through the module, book information is displayed in tabular form, the user can purchase and view the contents of books and other operations in the page; Book selection module, user can complete the process of buying books through this module, users can use temporarily store shopping cart to store the buying the book in purchase process. You can also modify the number of the buying book. Order processing module, this module mainly provide the administrator to view, delete modify the orders information in the database, at the same time, users can submit orders. User Help Center module, the user can obtain telephone to contact the administrator from the customer service module. The modules covering the online bookstore have several major advantages. When we describe the instance of the related technology used, we will also introduce a number of modules used in other frameworks and technologies. Focus to introduce how to set up the Struts framework and the role of Struts framework in the instance of the module. Paper describes the entity contents of the required database using of data dictionary, which includes the user table and book table.This paper will outline the overall Struts framework, set out the meaning of using Struts framework in the development of Web applications. Second, we introduce generally to development tools which are used in the development instance of the module and operating platform related to software. The database software of the system is DB2 that is developed by IBM. At the same time, system uses the Eclipse development platform, which is an open source, extensible application development platform, and provide programmers with an integrated Java development environment; Server is selected a good Servlet/JSP container that Tomcat server. Then we make a detailed introduction to related technologies used in the development of an instance of the module, including the system model B/S structure, Servlet, JSP, MVC, JDBC, Java language and related hardware and software technical support and content. This part is a focus of this paper, where the Struts framework will run each part of the components and processes to make a detailed description. Finally, we will describe the functions of the various parts of the instance of the module, and show examples of various parts of images; the same time, we can show the module role of the Struts framework in the instance of the module in accordance with the description of the Struts components and running processes in the previous chapter, this part is a focus in the paper, and will complete the study and application of Struts framework.
Table of contents
Summary 4-6
Abstract 6-11
Chapter 1 Introduction Overview 11-13
1.1 Struts framework 11 < meaning br /> 1.2 Struts framework 11-12
1.3 Summary 12-13
Chapter 2 Introduction to the tools and operating platform 13-16 < br /> 2.1 IBM DB2 databases Profile 13-14
2.2 Eclipse development platform Introduction 14
2.3 Tomcat Web server Introduction 14-15
2.4 examples of modules operating platform 15
2.4.1 hardware platform 15
2.4.2 software platform 15
2.5 of this chapter subsections 15 -16
Chapter 3, the basic concepts and theoretical foundation 16-29
3.1 Java programming language 16-17
3.1.1 Java history 16
advantages 3.1.2 Java language 16-17
3.2 B / S structure 17
3.3 Java Web application 17-18
3.4 Servlet component 18-19
3.5 JSP technology 19-21
3.5.1 What is a dynamic web 19-20
3.5. 2 What is JSP technology and JSP components 20-21
3.6 JDBC technology 21
3.7 J2EE technology 21-22
3.8 MVC design pattern 22-24
3.8.1 controller 22
3.8.2 model 22-23
3.8.3 view 23
3.8.4 MVC 's strengths and weaknesses scope 23-24
3.8.5 MVC 's 24
3.9 Struts implementation mechanism 24-26 <br / > realize 3.9.1 model achieve 24-25
3.9.2 view achieve 25
3.9.3 controller 25
3.9.4 configuration file struts-config.xml 25-26
3.10 Struts other related components 26-28
3.10.1 Struts tag 26 < br /> 3.10.2 Validator validation framework 26-27
3.10.3 reset () method 27
3.10.4 ActionError class 27
3.10.5 ActionErrors class 27
3.10.6 ActionForward class 27
3.10.7 ActionMapping class 27-28
3.11 Struts workflow 28
3.12 summary 28-29
Chapter 4 summary of systems analysis and design role and significance of 29-46
4.1 system development Background 29
4.2 system 29-30
4.3 system feasibility study overall architecture 30
4.4 system 30-31 < br /> other frameworks 4.5 applications 31-32
4.5.1 Hibernate framework 31-32
4.5.2 Spring framework 32
4.6 system Module functional Overview 32-37
4.6.1 user Management module 32-33
4.6.2 library management module 33-34
4.6 .3 Book Search module 34-35
4.6.4 buy books module 35
4.6.5 order Processing module 35-36
4.6 0.6 users Help Center module 36-37
4.7 system features data 37-44
4.7.1 model part 37-41
4.7 .2 view portion 41-43
4.7.3 controller section 43-44
4.8 database needs analysis 44-45
4.8.1 t_user table ( user table ) 44
4.8.2 t_book table ( table books ) 44-45
4.9 Summary 45-46
Article Chapter 5 summary and Outlook 46-48
5.1 summary 46
5.2 Prospect 46-48
References 48 - 51
Author 51-52
Thanks 52
Related dissertations
- Development of embedded network fingerprint attendance system
- Design and Implementation of Campus Network Content Management System
- The Design and Implementation of the Construction Project Open Bid Evaluation System for Weifang
- The Design and Implementation of Fang Mozhai Online Bookstore
- Notebook Sales System Design and Implementation
- Design and Implementation of Enrollment Management Information System for Hunan University
- Design and Implementation of Tourism Management Website System
- Design and Implementation of Book Information Management System for Library Based on JSP&Servlet
- A Study of Classic Jiont Data and Model Management System
- College Student’learing Froum for the Exchange of Design and Impplementation
- Design and implementation of the modern distance education system based on JSP/Servlet
- Design and Implementation of Management System of Students’Homework Based on B/S
- The Design and Realization of Employment and Recruitment System Based on Java EE for University Students
- Design and Research of MVC and Rule Engine Based Account Receivable Management System
- Design and Implementation of Rapid Prototyping Remote System Based on MVC Model
- Web Application System Research Based on Struts and Hibernate
- Xinxiang Netcom duty management system supporting internal
- Development of GUI System Based on MVC and Struts
- Based on Jsp, JavaBean and Servlet research and development of the academic system
- Design and Implementation in Telecom Qurey-Ticket System Based on Struts Framework