【正文】
所 在 學(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 establishment of a dynamic web page technology standards. JSP technology is somew hat similar to ASP technology, It is a traditional HTML page file (*. htm, *. html) to insert Java program segment (Scriptlet) and JSP tag (tag), To form the JSP file( *jsp) . Web development with JSP is a crossplatform applications that can run under Linux, but also in other operating systems. In the JSP of the many advantages, one of w hich is that it will be HTML encoded Web page from the business logic separated effectively. JSP access with reusable ponents, such as Servlet, JavaBean and Javabased Web applications. JSP also supports directly in the Web page embedded Java code. JSP can be used two ways to access documents: JSP documents sent by the browser request, the request sent to the Servlet. JSP technology uses Java programming language, XMLtype tags and scriptlets, to have a package deal with the logic of dynamic pages. Page tags and scriptlets can also exist in the server access to the resources of the application logic. JSP logic and Web page design and display isolated and support reusable ponentbased design, Webbased applications more quickly and easily developed. The Web server w hen meets visits the JSP homepage the request, first carries out segment, will then carry out the result code to return together with JSP in the document HTML for the customer. The insertion Java segment may operate the database, again the directional homepage and so on, realizes the function w hich the establishment dynamic homepage needs. JSP and Java Servlet are the same, is in the server end execution, usually returns to this client side is a HTML text, therefore client side, so long as has the browser to be able to glance over. The JSP page is posed of the HTML code and the inserting Java code. The server in the page by the client side was requested that later will carry on processing to these Java code, will then produce the HTML page will return gives the client side the browser. Java Servlet is the JSP technology base, moreover the largescale Web application procedure39。s function, for instance the search and the start installment39。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。 JSP 技術(shù)有點(diǎn)類似 ASP 技術(shù),它是在傳統(tǒng)的網(wǎng)頁 HTML 文件 (*.htm,*.html)中插入 Java 程序段 (Scriptlet)和 JSP 標(biāo)記(tag),從 而形成 JSP 文件 (*.jsp)。JSP 將網(wǎng)頁邏輯與網(wǎng)頁設(shè)計(jì)和顯示分離,支持可重用的基于組件的設(shè)計(jì),使基于 Web 的應(yīng)用程序的開發(fā)變得迅速和容易。 2 JSP 技術(shù)方法 為了快速 方便地進(jìn)行動(dòng)態(tài)網(wǎng)站的開發(fā), JSP 在以下幾個(gè)方面做了改進(jìn),使其成為快速建立跨平臺(tái)的動(dòng)態(tài)網(wǎng)站的首選方案?;诮M件的方法加速了總體開發(fā)過程,并且使得各種組織在他們現(xiàn)有的 技能和優(yōu)化結(jié)果的開發(fā)努力中得到平衡。此外,通過開發(fā)標(biāo)識(shí)庫, JSP 技術(shù)可以進(jìn)一步擴(kuò)展。除了 JDT 之外, Eclipse SDK— 最流行的 下載 — 還包含 Plugin Development Environment(PDE)。通常,插件專注于特定區(qū)域的責(zé)任,并通過一個(gè)或多個(gè)擴(kuò)展點(diǎn)的方式將其他責(zé)任指派給其他插件。 Spring 是一個(gè)輕型容器 (lightweight container),其核心是 Bean 工廠 (Bean Factory),用以構(gòu)造我們所需要的 M(Model)。就 Struts 而言,控制器是以 servlet 實(shí)現(xiàn)的一個(gè)命令設(shè)計(jì)模式。 View(視圖) ,視圖就是一個(gè) JSP 文件。 Action 類是業(yè)務(wù)邏輯的一個(gè)包裝?!?。直到 CSS 出現(xiàn)。 JavaScript 的正式名稱是 ECMAScript。各類腳本 目前被廣泛地應(yīng)用于網(wǎng)頁設(shè)計(jì)中,因?yàn)槟_本不僅可以減小網(wǎng)頁的規(guī)模和提高網(wǎng)頁瀏覽速度,而且可以豐富網(wǎng)頁的表現(xiàn),如動(dòng)畫、聲音等。腳本可以存為后綴名為 .cfg 的文件放在 cstrike 文件夾下,執(zhí)行時(shí)在控制臺(tái)輸入: exec(腳本文件名) .cfg 即可。 現(xiàn)在的腳本語言是比較多的,一般的腳本語言的執(zhí)行只同具體的解釋執(zhí)行器有關(guān),所以只要系統(tǒng)上有相應(yīng)語言的解釋程序就可以做到跨平臺(tái)。 腳本 script 是使用一種特定的描述性語言,依據(jù)一定的格式編寫的可執(zhí)行文件,又稱作宏或批處理文件。當(dāng)時(shí)服務(wù)端需要對(duì)數(shù)據(jù)進(jìn)行驗(yàn)證,由于網(wǎng)絡(luò)速度相當(dāng)緩慢 ,只有 ,驗(yàn)證步驟浪費(fèi)的時(shí)間太多。 隨著 Inter 的迅猛發(fā)展, HTML 被廣泛應(yīng)用,上網(wǎng)的人們當(dāng)然希望網(wǎng)頁做得漂亮些,因此 HTML 排版和界面效果的局限性日益暴露出來。 Action 的用途是“將類的接口轉(zhuǎn)換為客戶機(jī)所需的另一個(gè)接口。 ActionForm 是一個(gè)抽象類,必須為每個(gè)輸入表單模型創(chuàng)建該類的子類。ActionForm bean 在會(huì)話級(jí)或請(qǐng)求級(jí)表示模型的狀態(tài),而不是在持久級(jí)。Web 容器將用一個(gè) HTTP 響應(yīng)作出響應(yīng)。 4 Structs 功能簡介 Struts 是一個(gè) MVC 框架( Framework) ,用于快速開發(fā) Java Web 應(yīng)用。在 Eclipse 中,甚至最基礎(chǔ)的功能,比如查找和啟動(dòng)安裝的插件,都封裝在插件中。它不斷增長的可用重構(gòu)和代碼生成功能集合允許您在更高的級(jí)別上操作代碼,并自動(dòng)化通常的 代碼密集型任務(wù)和易錯(cuò)任務(wù)。 數(shù)據(jù)庫連接 Java 中連接數(shù)據(jù)庫的技術(shù)是 JDBC, Java 程序通過 JDBC 驅(qū)動(dòng)程序與數(shù)據(jù)庫相連,執(zhí)行查詢、提取數(shù)據(jù)等操作。 可重用組件 絕大多數(shù) JSP 頁面依賴于可重用的、跨平臺(tái)的組件( JavaBeans 或者 Enterprise JavaBeans 組件)來執(zhí)行應(yīng)用程序所要求的復(fù)雜的處理。 Java Servlet 是 JSP 的技術(shù)基礎(chǔ),而且大型的 Web 應(yīng)用程序的開發(fā)需要 Java Servlet 和 JSP 配合才能完成。 JSP 技術(shù)使用 Java 編程語言編 寫類 XML 的 tags 和 scriptlets,來封裝產(chǎn)生動(dòng)態(tài)網(wǎng)頁的處理邏輯。s script language is quite many, script language execution generally only with concrete explanation actuator related, so long as therefore on the system has the corresponding language interpreter to be possible to achieve the cross platform. Script (Script), is includes order and so on bind and alias sets, you may save this set are an independent document then in the time w hich needs carries out, like this may facilita te you in the CS use. The script may save for the suffix named .cfg document places under the cstrike folder, w hen execution in control bench input: exec (script filename) .cfg then. For instance saves a script is the document, inputs in the control bench: may realize the function w hich we need. Must realize an order, so long as is good this process definition (alias), and assigns a key position for this order, so long as later according to will assign the good key position, may realize