【正文】
g database by JDBC, which provides API of objectoriented database access to upper layer application. So developers can use the object programming thought to operate database sufficiently, caring for the bottom database structure unnecessarily. Hibernate relieves the developer from 95 percent of mon data persistence related programming tasks, pared to manual coding with SQL and the JDBC API[4]. And it can integrate various Web server or application server, and nearly support all popular databases server. Principle of Hibernate H i b e r n a t e . p r o p e r t i e s X M L . M a p p i n gP e r s i s t e n t O b j e c t sD a t a b a s eA p p l i c a t i o nH i b e r n a t e Figure 2. Hibernate systematic structure As shown in figure 2, Hibernate lies in the middle layer that is between application and database .In the provided persistent service, Hibernate maps class to rows of datasheet by properties and mapping files of class () itself. Application interacts with database by Persitstent Object (PO) to handle data directly. 3 The Integration of Struts and Hibernate In the open source frameworks, for the presentation part, Tapestry has the powerful and natural bination of pages, its document is too conceptional to benefit programming. And its learning curve was too steep and so on. For the logic part, Spring has a good integration function, but there is a lack of public controller. And EJB depends on the EJB containers, at the same time, it is realized plicatedly. While Struts has been applied extensively because of its advantages. At present, most of systems apply the relational databases mainly, while Java is an objectoriented language essentially. In Model part of Struts framework application, using SQL and JDBC to operate databases when storing and fetching objects reduces programming efficiency and the systematic maintainability. Traditional J2EEbased application applies heavyweight framework based on EJB that adapts to the large enterprise development, while development and debugging by EJB container need to consume a plenty of time and high price. EJB3 improves the disadvantages of original EJB, but its application is not mature yet. Hibernate can substitute ContainerManaged Persistence (CMP) to acplish heavy responsibility of permanence in J2EE framework of applying a word, Hibernate can resolve the difficulties ing from using traditional CMP, JDBC and Data Access Object(DAO) in a technological development. For reducing the coupling of code and raising systematic development efficiency, this paper suggests J2EE application development tactics based on Struts and Hibernate. The Struts design shows the MVC framework sufficiently, which all control flows need a configuration file () to manage, and which is convenient to maintain. The integration of Struts and Hibernate is that Hibernate solves the model layer of Struts, which makes developers operate Java objects instead of database. The integration shows the objectoriented thought sufficiently and solves some problems of the database operation in traditional J2EE well. Flow of Framework The flow of integration framework based on Struts a