Font Size: a A A

Utilize The Technology Of Struts And Hibernate To Develop Web Application Program

Posted on:2005-01-09Degree:MasterType:Thesis
Country:ChinaCandidate:H W ZangFull Text:PDF
GTID:2168360125450486Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of internet, developping the program of server end based on Browser/Server has already become one of important points in developing Web application.There are many technologies which we use to develop the programs of server end .Among them,J2EE which Sun put forward has already become the focal point of the development of enterprise Web application gradually. Servlet and JSP of J2EE have been applied to many Web sites widespread too. Though JSP lets us find everything fresh and new, it becomes simpler to develop Web application. But it has a lot of shortcomings. If we only utilize JSP to develop Web application, we will find that the mix of business logic, Java codes on dynamic display and HTML makes many difficulties in reading, debugging and maintaining. Though we can make use of JavaBean to optimize the developing process, the code of each web page is still very confused.Struts can optimize developing Web application further as a framework of controller in common use. It offeres a flexible Model-View-Controller method to develop Java Web.It makes display and business logic separate totally, fully realize MVC model thought.It is a current mainstream to OO development approach, but most enterprise applications have to use with the relational Database frequent and mutually. So, in the environment of development of enterprise application, the mapping of object and relation is a kind of job of consuming time. Hibernate is the ORM that many programmer at present praised highly very much generally. It is the ORM of a opening source code. It carries on the object encapsulations of lightweight to JDBC. This makes Java programmers handle freely the Database by utilizing OO programming thinking.This paper develop application program of server end based on JSP and Servlets of J2EE by using struts as frame and utilizing hibernate to make data persistence. As everyone knows, JSP and Servlet are the technology based on Java and they are independent of platform. Struts is based on MVC model and makes display module separate from function module. As for new developing hibernate, it causes everybody's extensive concern as soon as it appears. Hibernate finish ORM(object relation mapping), so it make the interaction of enterprise application and back end Database become effective and fast. It raises also the maintainability, expansibility, portability and reusability of application system. First, the paper describes the basic design thought of Struts' frame and the ORM of hibernate technology. Second, it gives one concrete instance, then designs large-scale Web application by using userdefined tag lib. At last, the paper analyses the advantage and disadvantage of using the association technology (struts and hibernate) to develop a system, moreover, the paper compares the association technology with the method of using JavaBean to develop Web application.
Keywords/Search Tags:Application
PDF Full Text Request
Related items