The Application Of Struts In Cooperative Office System Based On MVC Pattern | Posted on:2008-08-18 | Degree:Master | Type:Thesis | Country:China | Candidate:D P Chen | Full Text:PDF | GTID:2178360215473886 | Subject:Computer application technology | Abstract/Summary: | PDF Full Text Request | With the rapid development of technology, the application program of server based onBrowser/Server is widely used. There are many technologies and frameworks indeveloping Web application. This paper discussed the J2EE web development methods such as the technical principle of Java Servlet/JSP and the Model2 structure and the Model-View-Controller design pattern. MVC pattern provides a layered structure for the development of application system, which includes view, controller and model, and separates business logic and the way of data presentation. It has remarkable advantage in developing multi-tier web application.Struts which implements MVC pattern is a web application framework and it lessen the burden of building multi-tier web application. Lightweight container is designed with dependency injection and can make main component loose coupling dynamically. Spring which is designed for solving the complexity of developing enterprise application program is a multi-tier J2EE lightweight framework.finally,I analyzed the persistence layer technology. Thepersistence frameworks which are well-designed and encapsulate JDBC acts enhancethe efficiency of data access and get much better performance by cache mechanism.Hibernate is an open source persistence framework, it reduces the complexity of developing database and make system portable.Based on the multi-tier principle of web application development a web application should be divided into several individual layers. Each layer focus on the specific requirement and the use of one layer do not require the use of other layer . this thesis did research on Struts, Spring and Hibernate frameworks, and analysed each framework's function in web application layer, using one of the Spring's advantages, which is called "non-invasion",integrate Spring Struts and Hibernate then form a multi-tier web application framework. In the framework .Struts take charge of the presentation layer,completing page displaying and answering user's requirements .Spring takes charge of business logic .completing the business logic and management of application programs .Hibernate takes charge of data persistence layer .completing interactive with the database. This framework possesses not only flexible View and Controller of Struts but also IoC and AOP of Spring, so it can increase the potential for business layer reuse and it'sextension greatly. In practice, the integrated framework in terms of the principle of 'interface oriented", designs and actualizes the development of web application system, in order to improve the reuse and extension of business logical layer.This framework have a good performance in design and development of a Office Administration System. | Keywords/Search Tags: | MVC pattern, Struts, Hibernate, Spring, IoC, AOP, ORM | PDF Full Text Request | Related items |
| |
|