Struts是Jakarta內的一個子計畫,目的是提供一個開放式的架構來建構Java的網路應用程式。Struts是以JSP Model 2為基礎的應用軟體架構,而這軟體架構則是經典的MVC設計模式的變體。Struts的Model元件為JavaBeans,構成系統狀態並負責後端資料處理部分;View元件為JSP,負責前端頁面的展現;Controller為ActionServlet與ActionMapping,負責分析用戶端傳過來的請求以決定該項請求所需要的Model與View元件。 以Struts為架構所開發出的應用系統中需要包含一份設定檔(struts-config.xml),負責串聯Struts架構中的MVC元件。這份設定檔需要應用程式開發者負責維護,每當應用系統架構上有所變動時,都得檢查或修改這份設定檔,然而當應用程式越來越大的時候,得花費更多的時間在維護這份設定檔上,因此本篇論文提出一套工具SVDTⅡ來針對以Struts為架構所開發的應用系統作一致性的檢查,節省開發專案時所需要維護的時間。
Struts is one project of Jakarta, whose goal is to provide an open source framework for building Java-based web applications. The architecture of Struts is based on the JSP Model 2, which is a variation of the classic MVC design pattern. In Struts, Java Beans constitute the model components for system states and data processing, JSPs are the view components, and Action Servlets and action mapping are the controller components. A web application based on Struts contains a configuration file (struts-config.xml) to link the three MVC components. The application programmer needs to maintain this configuration file and to make sure of its correctness. Once the web application changes, the programmer needs to modify and check the consistency of this file. When an application becomes more complicated, the programmer must spend more time maintaining the file. In this thesis, we designed and implemented a tool, SVDTⅡ, to check the consistency of web applications based on Struts.