| In an era of Internet, Web applications are necessary choice, which provide users with convenient and efficient environment. In order to develop Web applications, which have better structures and high maintainability, appropriate frameworks should be selected firstly. Struts, which acts as an open architecture for Web application based on MVC, is a popular schema for architecture based on J2EE. It contains a group of classes together with tag libraries, which performs a reusable MVC design. Contrarily in Web applications, which do not employ Struts, functions of processing data always tangle with functions of displaying data. This leads to poor maintainability as well as difficulty for debugging and testing.The Shaxi province discipline committee caution and admonish system is a Web application, mainly serving the purpose of managing civilian and civilian official bussiness function. Based on the analysis of users' requirements, system is designed and realized by following Struts rules and employing Struts groupwares. The system keeps to MVC principles and partitioning methods, which separates the system's business data processing function and display function successfully, as well as make all parts of system not only independent relatively, but also as a organic whole. On the one hand, according to layer structure to organise, the system is divided to View layer, Control layer and Model layer.on the other hand, according to Struts model and rules of interaction between groupwares, the system is divided into two parts: displaying part and background part. The displaying part is responsible for showing the outcome of system processing by JSP. The background part is responsible for processing business logic, which are divided into multi-layers, called database layer, business logic layer and controller layer. Database layer performs the access to database. By calling database API, business logic layer can process business logic. To display outcome in web pages conveniently, controller layer must process the output of business logic layer again. In the realization the process, the system adopts the integration technique provide by the more popular JBuilder to carry out each function module. Through test and circulate, the system function is well. The practice proves the Shaxi province discipline committee caution and admonish system is all viable in the aspect of structure and feasibility. |