Font Size: a A A

Research And Implementation Of Building Web Application Based On Struts And Hibernate

Posted on:2007-11-13Degree:MasterType:Thesis
Country:ChinaCandidate:T HouFull Text:PDF
GTID:2178360182982228Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In recent years, the network technology has been developed quickly and the platform of J2EE (Java2 Platform Enterprise Edition) has been adopted extensively. And the multi-layer web architecture based on B/S pattern matures gradually. The Model-View-Controller pattern discards disadvantages which the design pattern in traditional web application has. It separates the control of the data and the view of the data so as to meet the demand to the multi-layer web application complicated more and more. So MVC pattern is the best choice to develop the J2EE web application.Apache struts framework based on the J2EE platform, is a typical framework to implement the Model-View-Controller (MVC) design pattern. Model is made up of JavaBean or EJB that implement the business logic. Controller is constituted by Action Servlet and Action. A group of JSP files constitute view. The framework lightens the burden to construct the multi-layer web application and provides components which can be reused. The design of the struts-config.xml and the configuration file is an important part for the struts framework. Struts provides controller component and integrates other related technologies to implement the model component and view component of MVC pattern. Struts are fit for all kinds of projects especially for large ones which can embody more advantages of struts.ORM means object-relational mapping. It is an important technique in object-oriented designing. Hibernate is an ORM tool for java environment. It manages the mapping from java classes to database tables and the operation of persistent objects. So, Java programmers can freely manipulate database by object programming idea, as well as pay attention to object programming and class programming, and solve the operation problems. Hibernate becomes the best tool of O-R Mapping and get the more and more programmers' love.This thesis firstly described the architecture and principle of Struts framework basing on the introducing of J2EE and MVC model. Secondly, through raising theconception of data persistence layer, this thesis introduced the basic knowledge of Hibernate. Thirdly, through an example of applying struts and Hibernate framework to Wudu community management system. This thesis analyzed in detail the application of Struts and Hibernate framework into practical developing process. At end, it discussed advantages and disadvantages of Struts and Hibernate framework, and summarized the experiences in the project development.
Keywords/Search Tags:J2EE, MVC, Struts, Hibernate, Framework
PDF Full Text Request
Related items