Font Size: a A A

Architecture Based On Struts + Spring + Hibernate In E-commerce Applications

Posted on:2008-04-17Degree:MasterType:Thesis
Country:ChinaCandidate:L WangFull Text:PDF
GTID:2208360215950011Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
In recent years, there has been greater demands for application Systems based on Web to meet more complicated requirements, shorter R&D time. So the application of Web which has better development, maintainability, expansibility, repeatability and easy management, is the hotspot of the Web technology.After framework web-based investigations of current n-tier systems as well as the Struts, Spring and Hibernate framework, a new n-tier framework to build systems is brought up in this paper based on the MVC pattern theory. Struts is a framework based on MVC model, which separates the business code and the view code, optimizes the system structure effectively, enhances expansibility of complexity system, and reduces complexity and maintainability of the system. Hibernate is an object-relational mapping tool, via using Hibernate, can resolve the problems produced by using object oriented language and relational database. Spring separates the business tier into business logic tier and data persistence tier in J2EE hiberarchy, then the business logic is handled by Spring, and the data access is handled by Hibernate, which make the hiberarchy clear, in favor of maintainability and expansibility of the system.The paper is based on the web development methods of J2EE architecture. Firstly, introduce the technical principle of Servlet/JSP, the Model l and Model 2 design combining Servlet with JSP and the discuss of internal mechanism of Struts architecture which can better implement the Model 2 and so on. Secondly, I applied the Struts to the presentation layer, applied the Hibernate to the persistence layer, applied the Spring to the business layer, conformed in framework and constructed a flexible, loosely coupled, extensible and high performance developing architecture. Finally, an example based on Rox Network E-Commerce System is introduced to illustrate the process to build an multi-tiers system with the help of the architecture. Results show that this new framework helps to increase work efficiency in exploration. Meanwhile, expansibility and maintainability of the system within this framework are also satisfactory.
Keywords/Search Tags:Struts, Spring, Hibernate, architecture, E-Commerce
PDF Full Text Request
Related items