Font Size: a A A

The Research And Application Based On Struts Extended Framework

Posted on:2008-05-11Degree:MasterType:Thesis
Country:ChinaCandidate:C Y NiFull Text:PDF
GTID:2178360218456632Subject: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 multi-layer web application development has become the mainstream. A good web application should have many characteristics,such as the loose coupling, easy to transplant and expandable.At present, many web application systems are divided into four layers in logic: customer layer, expression layer, service layer and enterprise information system layer. The biggest shortcoming this stratification structure is data persistent processing in the service layer. This kind of development way that the service logic and the database operation code mixes in the together is disadvantageous to constructing a loose coupling, easy to transplant and expandable application procedure. Therefore, it is necessary to produce a relatively independent persistent layer in the web application system structure, service logic realization module visits database through this persistent layer indirect in system application. So the overall system structure can be divided into five layers: customer layer, expression layer, service layer, persistent layer and enterprise information system layer.Apache struts is based on the J2EE platform, which is a web development framework having the Model-View-Controller (MVC) pattern. It stipulats the application architecture, and also provides a good software framework for the application system. Struts framework certainly does not provide the ready-made module for the design and the foundation model layer module, so to expand and integrate Struts framework is very significant in the theory and practical to design multi-layer architecture, loose coupling, easy to transplant and the expandable web application.This article is mainly to research the Struts framework expansion and integrating, and the main work is:(1) To develop the Struts model layer module. In the model layer, proposes new thought of the service validator interface and the service handling interface, enhances the reuse ablity of the system.(2) To integrate persistent framework Hibernate as the realization mechanism of the persistent layer, reduces the system coupling degree, enhances the extension ablity of the system.(3) To expand the Struts handling architecture for exception, enables it to process diversification exception. The application service logic verification defeats are processed in exception form, which will reduce the burden of the controller and also reduce the coupling degree of control layer and the model layer. (4) To integrate the Validator framework to realize the system form data validation and expand its realization.(5) To analyse the concrete service and the function requirement of "Export Loading List Management", use expanded and the integrated Struts framework to develop the system. The design develops "Export Loading List Management System" with five system structures, which can be coupled loose, easy to transplant and expandable.
Keywords/Search Tags:MVC, Struts, Hibernate, expand, integrate
PDF Full Text Request
Related items