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

正文內(nèi)容

java銀行排號系統(tǒng)的設(shè)計與實現(xiàn)計算機畢業(yè)設(shè)計外文文獻原文及譯文-預(yù)覽頁

2024-12-26 09:10 上一頁面

下一頁面
 

【正文】 elocity say no, and provide yet another language to learn for Web development. There is some validity to limiting Java code access in UI development. Most importantly, give a page designer a little bit of Java, and he will use a lot of Java. I saw this happen all the time in Microsoft ASP development. In ASP development, you were supposed to create COM objects and then write a little ASP script to glue it all together. Instead, the ASP developers would go crazy with ASP script. I would hear Why wait for a COM developer to create it when I can program it directly with VBScript? Struts helps limit the amount of Java code required in a JSP file via tag libraries. One such library is the Logic Tag, which manages conditional generation of output, but this does not prevent the UI developer from going nuts with Java code. Whatever type of framework you decide to use, you should understand the environment in which you are deploying and maintaining the framework. Of course, this task is easier said than done. ? Limited scope Struts is a Webbased MVC solution that is meant be implemented with HTML, JSP files, and servlets. ? J2EE application support Struts requires a servlet container that supports JSP and Servlet specifications. This alone will not solve all your install issues, unless you are using Tomcat . I have had a great deal of problems installing the library with Netscape iPla , which is supposedly the first J2EEpliant application server. I remend visiting the Struts User Mailing List archive (see Resources) when you run into problems. ? Complexity Separating the problem into parts introduces plexity. There is no question that some education will have to go on to understand Struts. With the constant changes occurring, this can be frustrating at times. Wele to the Web. 第 11頁 共 20頁 ? Where is... I could point out other issues, for instance, where are the client side validations, adaptable workflow, and dynamic strategy pattern for the controller? However, at this point, it is too easy to be a critic, and some of the issues are insignificant, or are reasonable for a release. The way the Struts team goes at it, Struts might have these features by the time you read this article, or soon after. Future of Struts Things change rapidly in this new age of software development. In less than 5 years, I have seen things go from cgi/perl, to ISAPI/NSAPI, to ASP with VB, and now Java and J2EE. Sun is working hard to adapt changes to the JSP/servlet architecture, just as they have in the past with the Java language and API. You can obtain drafts of the new JSP and Servlet specifications from the Sun Web site. Additionally, a standard tag library for JSP files is appearing. 第 12頁 共 20頁 Struts—— 一種開源 MVC 的實現(xiàn) 《 IBM 系統(tǒng)研究 ,2020,44(2):3337》 作者: Malcolm Davis 這篇文章介紹 Struts,一個使用 servlet 和 JavaServer Pages 技術(shù)的一種 ModelViewController 的實現(xiàn)。然而,有一個重大的不同在一個小學(xué)生和一個專業(yè)人士開發(fā)的網(wǎng)站之間。 如果你開發(fā)過大型 Web 應(yīng)用程序,你就理解“變化”這個詞語。你可能永遠不會用 Struts 實現(xiàn)一個系統(tǒng),但了解一下 Struts 或許使你能將其中的一些思想用于你以后的 Servlet 和 JSP 實 現(xiàn)中。 MVC 通過把問題分成三類來幫助解決一些與單模塊相關(guān)的問題 : ? Model(模型) 模塊包括應(yīng)用程序功能的核心。 ? View(視圖) 視圖提供了模型的演示。視圖僅僅當(dāng)模型發(fā)生改變的時候才被通知 。 這種無結(jié)構(gòu)連接行為使得模型很難知道視圖的改變 。 這種方法存在一些弊端 : ? Java 程序員應(yīng)該開發(fā)服務(wù),而不是 HTML。 ? 嵌入在代碼中的 HTML 將會變得丑陋 。這個定義表示 Struts 是一個框架,而不是一個庫,但 Struts 也包含了豐富的標(biāo)記庫和獨立于該框架工作的實用程序類。 ? 控制器 控制器接收來自瀏覽器的請求,并決定 發(fā)送請求到何處 。就 Struts 而言,這 就 是通過作為實際業(yè)務(wù)邏輯 “瘦 ”包裝的 Action 類完成的。 JSP 文件使用 JSP 標(biāo)記讀取來自 ActionForm bean 的信息。 Struts 詳細資料 在圖 6 中展示了一個無其他附屬設(shè)備的阿帕奇 struts 的 action 包的 UML 圖表 。 如果你很老練,你可以把這些配置信息放進一個文件里并且在運行時加載該文件 。 猜猜怎么著 控制器用 一個 配置文件以 致于 你不必 非 硬編碼這些值。 正如前面所提及的 , 文件配置 Command。 ? 當(dāng)流程發(fā)生改變時 Java 開發(fā)人員不需要重新編譯代碼 。當(dāng)我說 輸入表單模型 時 ,我就是說 ActionForm 代表了一個 由 HTML 表單設(shè)置或更新的一般意義上的數(shù)據(jù)。沒有太多 糟糕 的 請求 .getParameter() 調(diào)用。 備注 : 這樣做通常并不明智 。 備 注 : ? 文件控制 著 HTML 表單請求與 ActionForm 之間的映射。 Action 類的 目的就 是將 HttpServletRequest 翻譯給 業(yè)務(wù)邏輯。 通過事件到達這里的時間 ,輸入表單數(shù)據(jù)(或 HTML 表單數(shù)據(jù)) 已經(jīng) 被從請求流中 翻譯 出來并 進入 ActionForm 類中。 考慮 Action 類的另一種方式是 Adapter 設(shè) 計模式。本例中的客戶機是 ActionServlet ,它對我們的具體業(yè)務(wù)類接口一無所知。 Action 開始為一個接口,后來卻變成了一個類。 ActionErrors 是 ActionError 類的容器, View 可以使用標(biāo)記訪問這些類。 確定 Controller 調(diào)用哪個 Action 類。這樣就使 Action 可訪問用于控制流程的信息。 ? 標(biāo)記庫 為什么要另發(fā)明一種輪子,或標(biāo)記庫呢?如果你在庫中找不到你所要的標(biāo)記,那就自己定義吧。 ? MVC 實現(xiàn)樣例 如果你希望創(chuàng)建你自己的 MVC 實現(xiàn),則 Struts 可增加你的見識。 Struts 的缺點 ? 仍處于發(fā)展初期 Struts 開發(fā)仍處于初級階段。為了避免使用不贊成使用的方法,你可能隔一天就需要下載最新的 Struts。在開發(fā)網(wǎng)頁的過程中,我們是否應(yīng)該讓網(wǎng)頁設(shè)計人員訪問 Java 代碼?某些框架(如 Velocity)說不應(yīng)該,但它提供了另一種 Web 開發(fā)語言讓我們學(xué)習(xí)。在 ASP 開發(fā)中,你應(yīng)該創(chuàng)建 COM 對象,然后編寫少量的 ASP 腳本將這些 COM 對象聯(lián)系起來。無論你決定使用哪種類型的框架,你都應(yīng)該了解你要在其中部署和維護該框架的環(huán)境。僅憑這一點遠不能解決你的全部安裝問題,除非使用 Tomcat 。毫無疑問,要理解 Struts 必須接受一定的培訓(xùn)。 在最近 5 年里 ,我目睹 過事物 從 cgi/perl ,再 到 ISAPI/NSAPI、再到使用 VB 的 ASP、一直到現(xiàn)在的 Java 和 J2EE 的變遷。
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1