【正文】
nd Hibernate is shown in Figure 3. At first, users send Http requests by Browser, then Http requests are accepted by ActionServlet of the control ponent in business layer, then gave to RequestProcessor which gets corresponding Action from ActionMapping by request URL[3]. Besides, ActionForm packs JSP pages, which can make a checking to data of datasheet if it is needed, send back ActionErrors to visual pages if there are mistakes and transfer the data of pages to Action if it passes validation. Request Processor transfers the “execute” method of Action and the method transfers the business logic module. Hibernate acplishes interaction of databases and JavaBean. The operation of processing business logic interacts with database by data permanence layer and field object layer. The “execute” method of Action will return ActionForward objects that are accepted by ActionServlet after executing. Systematic Structure of the Integration Framework The EIS layer of the multilayer J2EE systematic structure can be partitioned into the data permanence layer and the data resource layer. It means a system can be divided into five layers as a whole. Client Layer: This layer runs in the Browser of users’ machines and handles interaction with users, transmits and shows messages to users. J2EE platform supports different type users including HTML users, Java Applets, Java application, etc. Presentation Layer: This layer works in J2EE Web container, produces the systematic representation logic, handles users’ requests and makes the responses. The entire Web is built on Struts framework, in which the View ponent is posed of JSP/HTML pages whose data is expressed by ActionForm Bean, the Controller ponent is posed of ActionServlet united and Action Classes, and the Model ponent is realized by business logic layer. Business 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. This layer is posed of Business Objects (BO) such as JavaBean and session EJB. B r o w s e rJ S P ( T a g l i b ) V i e w A c t i o n S e r v l e t( A c t i o n M a p p i n g )A c t i o nJ a v a B e a nE J BA c t i o n F o r mPermanence layerHibernateRelational databaseR e q u e s tR e s p o n s eP r e s e n t a t i o n l a y e rA c t i o n F o r w a r dD a t a v e r i f i c a t i o npages dataM a p p i n gA c t i o n F o r w a r dfill data C o n t r o l B u s i n e s s l o g i c l a y e r M o d e l Figure 3. Flow chart of the integration framework based on Struts and Hibernate 第 1 頁(yè) 共 6 頁(yè) 1 基于 MVC的 Struts 框架 在傳統(tǒng)的 Web 應(yīng)用程序, Java 服務(wù)器頁(yè)面( JSP)頁(yè)面負(fù)責(zé)處理所有的事情,例如,接收請(qǐng)求,執(zhí)行業(yè)務(wù)邏輯,選擇下一個(gè)頁(yè)面。 畢業(yè)設(shè)計(jì)說(shuō)明書 英文文獻(xiàn)及中文翻譯 第 Ⅰ 頁(yè) 共 Ⅱ 頁(yè) 目 錄 1 Struts Framework Based on MVC ........................................