【正文】
the Controller ponent is posed of ActionServlet united and Action Classes, and the Model ponent is realized by business logic Logic Layer: This layer acplishes the required business of system, provides the required business method to presentation layer. It can receive data from client programs and save them to the storage equipment after proper disposal, read data from the data storage equipment, then send them out to client programs. 中北大學 2021 屆畢業(yè)設計 英 文文獻譯文 第 1 頁 共 5 頁 1 基于 MVC的 Struts 框架 在傳統(tǒng)的 Web 應用程序, Java 服務器頁面( JSP)頁面負責處理所有的事情,例如,接收請求,執(zhí)行業(yè)務邏輯,選擇下一個頁面。 畢業(yè)設計說明書 英文文獻及中文翻譯 班 級: 學號: 姓 名: 學 院: 專 業(yè): 指導教師: 1 Struts Framework Based on MVC In the traditional Web application, Java Server Pages(JSP) pages are responsible for handling all things, for example, receiving requests, executing business logics, choosing the next page. These plicated things may lead to chaos of JSP pages’ codes and be harmful for the extension and maintenance of pages. The ModelViewController (MVC) mode separates the programming codes into three different areas, which has solved the above problem. MVC can realize J2EE application system39。s stratification and the loose coupling of three layers or multilayer, and it is a realization way of orienting dynamic content. The MVC mode divides application into three core ponents of Model, View and Controller. Struts is a realization of MVC. It is an open source Web application framework and uses Servlet and JSP marks that belong to the J2EE norm as a part of the realization. Struts inherits MVC characteristics and realizes some corresponding changes and extension according to J2EE traits. Struts separates Java codes of JSP by Java Bean and Action class to be the MVC mode, transmits data among the three partitions of Model, View and Controller, demonstrates the connection between various classes and JSP pages by configuration files finally and it intends to realize the separation of presentation layer, business layer and data layer. The Struts structure is shown in Figure 1. The Model contains the business logic that exchanges data with a persistence layer. The View is in charge of producing what is directly visible to the user, e. g. web pages. The Controller is the layer that receives requests from clients, determines what business logic t