【正文】
該類的子類。要使 用 Action ,請創(chuàng)建它的子類并覆蓋 process()方法。 Action 的用途是“將類的接口轉(zhuǎn)換為客戶機(jī)所需的另一個(gè)接口。因此, Struts 提供了它能夠理解的一個(gè)業(yè)務(wù)接口,即 Action .通過擴(kuò)展 Action ,我們使得我們的業(yè)務(wù)接口與 Struts 業(yè)務(wù)接口保持兼容。 隨著 Inter 的迅猛發(fā)展, HTML 被廣泛應(yīng)用,上網(wǎng)的人們當(dāng)然希望網(wǎng)頁做得漂亮些,因此 HTML 排版和界面效果的局限性日益暴露出來??梢赃@么說,HTML 的 Tag 主要是定義網(wǎng)頁的內(nèi)容 (Content),而 CSS 決定這些網(wǎng)頁內(nèi)容如何顯示(Layout)。當(dāng)時(shí)服務(wù)端需要對數(shù)據(jù)進(jìn)行驗(yàn)證,由于網(wǎng)絡(luò)速度相當(dāng)緩慢 ,只有 ,驗(yàn)證步驟浪費(fèi)的時(shí)間太多。ECMA262 是正式的 JavaScript 標(biāo)準(zhǔn)。 腳本 script 是使用一種特定的描述性語言,依據(jù)一定的格式編寫的可執(zhí)行文件,又稱作宏或批處理文件。也正因?yàn)槟_本的這些特點(diǎn),往往被一些別有用心的人所利用。 現(xiàn)在的腳本語言是比較多的,一般的腳本語言的執(zhí)行只同具體的解釋執(zhí)行器有關(guān),所以只要系統(tǒng)上有相應(yīng)語言的解釋程序就可以做到跨平臺。要實(shí)現(xiàn)一個(gè)命令只要把這一過程定義 (alias)好,并且分配一個(gè)鍵位給這個(gè)命令,以后只要按分配好的鍵位,就可以實(shí)現(xiàn)這一過程。腳本可以存為后綴名為 .cfg 的文件放在 cstrike 文件夾下,執(zhí)行時(shí)在控制臺輸入: exec(腳本文件名) .cfg 即可。所以用戶應(yīng)根據(jù)對所訪問網(wǎng)頁的信任程度選擇安全等級,特別是對于那些本身內(nèi)容就非法的 網(wǎng)頁,更不要輕易允許使用腳本。各類腳本 目前被廣泛地應(yīng)用于網(wǎng)頁設(shè)計(jì)中,因?yàn)槟_本不僅可以減小網(wǎng)頁的規(guī)模和提高網(wǎng)頁瀏覽速度,而且可以豐富網(wǎng)頁的表現(xiàn),如動畫、聲音等。 Netscape (Navigator ) 的 Brendan Eich 發(fā)明了這門語言,從 1996 年開始,已經(jīng)出現(xiàn)在所有的 Netscape 和 Microsoft 瀏覽器中。 JavaScript 的正式名稱是 ECMAScript。 CSS 按其位置可以分成三種:內(nèi)嵌樣式 (Inline Style) ,內(nèi)部樣式表 (Internal Style Sheet) ,外部樣式表 (External Style Sheet)。直到 CSS 出現(xiàn)。 如果你寫的 CSS 語句是當(dāng)成外部樣式表而在 HTML 文件中調(diào)用,那它的擴(kuò)展名存成 .css 就可?!?。當(dāng)事件進(jìn)展到這一步時(shí),輸入表單數(shù)據(jù)(或 HTML 表單數(shù)據(jù))已被從請求流中提取出來并轉(zhuǎn)移到 ActionForm 類中。 Action 類是業(yè)務(wù)邏輯的一個(gè)包裝。時(shí)代變了,但方法依舊。 View(視圖) ,視圖就是一個(gè) JSP 文件。 Model(模型)的狀態(tài) ,模型表示應(yīng)用程序的狀態(tài)。就 Struts 而言,控制器是以 servlet 實(shí)現(xiàn)的一個(gè)命令設(shè)計(jì)模式。這個(gè)定義表示 Struts 是一個(gè)框架,而不是一個(gè)庫,但 Struts 也包含了豐富的標(biāo)記庫和獨(dú) 立于該框架工作的實(shí)用程序類。 Spring 是一個(gè)輕型容器 (lightweight container),其核心是 Bean 工廠 (Bean Factory),用以構(gòu)造我們所需要的 M(Model)。如果找到一個(gè),它就會向找到的插件詢問有關(guān)文件結(jié)構(gòu)的信息,并在比較過程中使用該信息。通常,插件專注于特定區(qū)域的責(zé)任,并通過一個(gè)或多個(gè)擴(kuò)展點(diǎn)的方式將其他責(zé)任指派給其他插件。插件是在 Eclipse 應(yīng)用程序中提供所有功能的組件。除了 JDT 之外, Eclipse SDK— 最流行的 下載 — 還包含 Plugin Development Environment(PDE)。 3 Eclipse 功能簡介 越來越多的 Java 開發(fā)人員已經(jīng)開始欣賞 Eclipse 的 JDT 提供的生產(chǎn)率和質(zhì)量收益。此外,通過開發(fā)標(biāo)識庫, JSP 技術(shù)可以進(jìn)一步擴(kuò)展。 適應(yīng)平臺 幾乎所有平臺都支持 Java, JSP+ JavaBeans 幾乎可以在所有平臺下通行無阻?;诮M件的方法加速了總體開發(fā)過程,并且使得各種組織在他們現(xiàn)有的 技能和優(yōu)化結(jié)果的開發(fā)努力中得到平衡。在服務(wù)器端, JSP 引擎解釋 JSP 標(biāo)識和腳本,生成所請求的內(nèi)容,并且將結(jié)果以 HTML(或者 XML)頁面的形式發(fā)送回瀏覽器。 2 JSP 技術(shù)方法 為了快速 方便地進(jìn)行動態(tài)網(wǎng)站的開發(fā), JSP 在以下幾個(gè)方面做了改進(jìn),使其成為快速建立跨平臺的動態(tài)網(wǎng)站的首選方案。 JSP 頁面由 HTML 代碼和嵌入其中的 Java 代碼所組成。JSP 將網(wǎng)頁邏輯與網(wǎng)頁設(shè)計(jì)和顯示分離,支持可重用的基于組件的設(shè)計(jì),使基于 Web 的應(yīng)用程序的開發(fā)變得迅速和容易。 JSP 還支持在 Web 頁面中直接嵌入 Java 代碼。 JSP 技術(shù)有點(diǎn)類似 ASP 技術(shù),它是在傳統(tǒng)的網(wǎng)頁 HTML 文件 (*.htm,*.html)中插入 Java 程序段 (Scriptlet)和 JSP 標(biāo)記(tag),從 而形成 JSP 文件 (*.jsp)。s time were too many. Therefore Netscape browser Navigator has joined Javascript, has provided the data confirmation basic function. The JavaScript official name is “ECMAScript”. This standard by ECMA organization development and maintenance. ECMA262 is the official JavaScript standard. This standard based on JavaScript (Netscape) and JScript (Microsoft). Netscape (Navigator ) Brendan Eich has invented this language, started from 1996, already appeared in all Netscape and in the Microsoft browser. The ECMA262 development began in 1996, in 1997 July, the ECMA general meeting has accepted its first edition. Script script uses one specific descriptive language, rests on certain form pilation to be possible the execution document, is also called as great or the batch run document. The script usually may transfer temporarily by the application procedure and carry out. Each kind of script present widely is applied in the homepage design, because the script not only may reduce the home page the scale and raises the homepage browsing speed, moreover may enrich the homepage performance, like animation, sound and so on. Cites a most mon example, w hen we click in the homepage the Email address can transfer Outlook Express or the Foxmail this kind of mail software automatically, is realizes through the script function. Also because of script these characteristics, the human w ho harbors ulterior motives by some are often using. For example joins some destruction puter system39。s request, and decided that sends out w here this request. Speaking of Struts, the controller is an order design pattern w hich realizes by servlet. struts document disposition controller. Service logic, the service logic renewal model39。 Is more convenient to Bean factory expansion ApplicationContext we to realize the J2EE application。s function, for instance the search and the start installment39。s logic is sealed in marks and in the JavaBeans module, and ties up in the script, all scripts in server end movement. Because core logic is sealed in marks and in JavaBeans, therefore the Web administrative personnels and the page designer, can edit and use the JSP page, but does not affect the content the production. In the server end, the JSP engine explained that the JSP marking and the script, produce the content which requested, and (or XML) page39。 外文資料翻譯 資料來源: 文章名: JSP And WEB Technology 書 刊 名:《 Communications Technology》 作 者: Damon Hougland, Aaron Tavistock 出版社: InfoQ, 章 節(jié): Chapter3 頁 碼: P34~P45 文 章 譯 名 : JSP 及其 WEB 技術(shù) 姓 名 : 學(xué) 號 : 指導(dǎo)教師 (職稱 ): 專 業(yè) : 計(jì)算機(jī)科學(xué)與技術(shù)(工程方向) 班 級 : 所 在 學(xué) 院 : 計(jì)算機(jī)科學(xué)與工程學(xué)院 外文原文 : JSP and WEB technology 1 JSP Introduction JSP (JavaServer Pages) is a Javabased scripting technology. Is advocated by Sun Microsystems Inc., together with a number of panies involved in the e