freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計論文 外文文獻翻譯 jsp軟件 struts——mvc 的一種開放源碼實現(xiàn)(文件)

2024-12-26 07:56 上一頁面

下一頁面
 

【正文】 require changes to code. ? Customers of the service should be able to create pages to meet their specific needs. ? The page designer isn39。t able to have direct involvement in page development. ? HTML embedded into code is ugly. For the Web, the classical form of MVC needed to change. Figure 4 displays the Web adaptation of MVC, also monly known as MVC Model 2 or MVC 2. Figure 4. MVC Model 2 Struts, an MVC 2 implementation Struts is a set of cooperating classes, servlets, and JSP tags that make up a reusable MVC 2 design. This definition implies that Struts is a framework, rather than a library, but Struts also contains an extensive tag library and utility classes that work independently of the framework. Figure 5 displays an overview of Struts. Figure 5. Struts overview 本科生畢業(yè)設(shè)計(論文)外文翻譯 3 Struts overview ? Client browser An HTTP request from the client browser creates an event. The Web container will respond with an HTTP response. ? Controller The Controller receives the request from the browser, and makes the decision where to send the request. With Struts, the Controller is a mand design pattern implemented as a servlet. The file configures the Controller. ? Business logic The business logic updates the state of the model and helps control the flow of the application. With Struts this is done with an Action class as a thin wrapper to the actual business logic. ? Model state The model represents the state of the application. The business objects update the application state. ActionForm bean represents the Model state at a session or request level, and not at a persistent level. The JSP file reads information from the ActionForm bean using JSP tags. ? View The view is simply a JSP file. There is no flow logic, no business logic, and no model information just tags. Tags are one of the things that make Struts unique pared to other frameworks like Velocity. Struts details Displayed in Figure 6 is a strippeddown UML diagram of the package. Figure 6 shows the minimal relationships among ActionServlet (Controller), ActionForm (Form State), and Action (Model Wrapper). Figure 6. UML diagram of the relationship of the Command (ActionServlet) to the Model (Action amp。 Struts 可幫助您控制 Web 項目中的變化并提高專業(yè)化水平。網(wǎng)頁設(shè)計人員(或者 HTML 開發(fā)人員)必須理解顏色、用戶、生產(chǎn)流程、網(wǎng)頁布局、瀏覽器兼容性、圖像創(chuàng)建和 JavaScript 等等。 “模型 視圖 控制器 ”(MVC) 就是用來幫助您控制變化的一種設(shè)計模式。 模型 視圖 控制器 (MVC) JSP 標記只解決了部分問題。模型封裝了應(yīng)用程序的狀態(tài)。它是應(yīng)用程序的 外觀 。 ? Controller(控制器) 控制器對用戶的輸入作出反應(yīng)。在 Web 上,為了發(fā)現(xiàn)對應(yīng)用程序狀態(tài)的修改,瀏覽器必須重新查詢服務(wù)器。 ? 更改布局時需要更改代碼。 對于 Web,需要修改標準的 MVC 形式。圖 5 顯示了 Struts 的一個概覽。就 Struts 而言,控制器是以 servlet 實現(xiàn)的一個命令設(shè)計模式。 ? Model(模型)的狀態(tài) 模型表示應(yīng)用程序的狀態(tài)。 ? View(視圖) 視圖就是一個 JSP 文件。圖 6 顯示了 ActionServlet (Controller)、 ActionForm (Form State) 和 Action (Model Wrapper) 之間的最簡關(guān)系。函數(shù)指針數(shù)組曾經(jīng)是用 C 語言進行結(jié)構(gòu)化編程的很好方法。時代變了,但方法依舊。在創(chuàng)建 Web 項目時,您將擴展 Action 和 ActionForm 來解決特定的問題。 ? 網(wǎng)頁設(shè)計人員不必費力地閱讀 Java 代碼來理解應(yīng)用程序的流程。 ActionForm 是一個抽象類,必須為每個輸入表單模型創(chuàng)建該類的子類。 ? Struts 將使用 HttpServletRequest 中相應(yīng)的域設(shè)置 UserActionForm 的狀態(tài)。 ? 在將它傳遞給 Action 類之前, Struts 還會對 UserActionForm 調(diào)用 validation() 方法進行表單狀態(tài)驗證。 ? 可在會話級維護 UserActionForm 。 Action 類 Action 類是業(yè)務(wù)邏輯的一個包裝。仍然沒有 太多討厭的 () 調(diào)用。通過將業(yè)務(wù)邏輯放在單獨的包或 EJB 中,我們就可以提供更大的靈活性和可重用性。 ”(摘自 Gof 所著的 Design Patterns Elements of Reusable OO Software)。(一個有趣的發(fā)現(xiàn)是, Action 是類而不是接 口)。 ActionError 封裝了單個錯誤消息??刂破鞑榭摧斎胧录⒄埱蠓峙山o某個 Action 類。 ActionServlet (Command) 通過 perform() 方法將 ActionMapping 傳遞給 Action 類。這個特性能很好地集成到基于 JSP 的開發(fā)工具中,這些工具允許用標記編寫代碼。許多人都可以進行很好的代碼檢查。問題越來越復雜,并且需要越來越多的管理。 Struts 與 Struts 相比變化極大。 本科生畢業(yè)設(shè)計(論文)外文翻譯 15 ? 正確的抽象級別 Struts 是否提供了正確的抽象級別?對于網(wǎng)頁設(shè)計人員而言,什么是正確的抽象級別呢?這是一個用 $64K 的文字才能解釋清楚的問題。在 Microsoft ASP 的開發(fā)中,我總是看到這樣的情況。 Logic Tag 就是這樣的一種庫,它對有條件 地生成輸出進行管理,但這并不能阻止 UI 開發(fā)人員對 Java 代碼的狂熱。 ? J2EE 應(yīng)用程序支持 Struts 需要支持 JSP 和 Servlet 規(guī)范的 servlet 容器。 ? 復雜性 在將問題分為幾個部分的同時也引入了復雜性。 Struts 的前景 在這個軟件開發(fā)的新時代,一切都變得很快。此外,一個標準 JSP 標記庫即將出現(xiàn)。 Sun 正在盡力將新的變化反映到 JSP/servlet 體系結(jié)構(gòu)中,正如他們對 Java 語言和 API 所作的更改一樣。隨著變化的不斷加入,這有時會令人很沮喪。我用 Netscape iPla 安裝這個庫時遇到一大堆問題,按理說它是第一種符合 J2EE 的應(yīng)用程序服務(wù)器。當然,這項任務(wù)真是說起來容易做起來難。但是, ASP 開發(fā)人員會瘋狂地使用 ASP 腳本。在 UI 開發(fā)中限制訪問 Java 有一定的合理性。在過去的 6 個月中,我目睹 Struts 庫從 90K 增大到 270K 以 上。他們正在向著發(fā)行版本 而努力,但與任何 版本一樣,它不可能盡善盡美。 ? 管理問題空間 分治是解決問題并使問題可管理的極好方法。此外,如果您正在學習 JSP 標記技術(shù),則 Struts 為您提供了一個起點。 ActionMappings ActionMappings 是 ActionMapping 對象的一個集合。 配置信息被轉(zhuǎn)換為一組 ActionMapping ,而后者又被放入 ActionMappings 容器中。 ActionError 是 Struts 保持錯誤列表的方式。真是金無足赤。因此, Struts 提供了它能夠理解的一個業(yè)務(wù)接口,即 Action 。 Action 的用途是 “將類的接口轉(zhuǎn)換為客戶機所需的另一個接口。 注:擴展 Action 類時請注意簡潔。要使用 Action ,請創(chuàng)建它的子類并覆蓋 process() 方法。 ? 可將多個請求映射到 UserActionForm 。別的網(wǎng)頁或業(yè)務(wù)可能使用 Use
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1