【正文】
頁設(shè)計(jì)的一個(gè)突破,它解決了網(wǎng)頁界面排版的難題。 6 HTML 功 能簡介 Hyper Text Markup Language 超文本標(biāo)記語言是一種用來制作超文本文檔的簡單標(biāo)記語言。生成 一個(gè) HTML 文檔主要有以下三種途徑: 工直接編寫(例如用你所喜愛的 ASCII 文本編輯器或其它 HTML 的編輯工具)。 雖然 HTML 語言描述了文檔的結(jié)構(gòu)格式,但并不能精確地定義文檔信息必須如何顯示和排列,而只是建議 Web 瀏覽器(如 Mosiac, Netscape 等)應(yīng) 該如何顯示和排列這些信息,最終在用戶面前的顯示結(jié)果取決于 Web 瀏覽器本身的顯示風(fēng)格及其對(duì)標(biāo)記的解釋能力。 7 Js 腳本語言簡介 JS 即 javascrip, Javascript 是一種由 Netscape 的 LiveScript 發(fā)展而來的腳本語言,主要目的是為了解決服務(wù)器終端語言,比如 Perl,遺留的速度問題。這個(gè)標(biāo)準(zhǔn)由 ECMA 組織發(fā)展和維護(hù)。ECMA262 的開發(fā)始于 1996 年,在 1997 年 7 月, ECMA 會(huì)員大會(huì)采納了它的首個(gè)版本。舉個(gè)最常見的例子,當(dāng)我們點(diǎn)擊網(wǎng)頁上的 E- mail 地址時(shí)能自動(dòng)調(diào)用 Outlook Express 或 Foxmail 這類郵件軟件,就是通過腳本功能來實(shí)現(xiàn)的。通過“安全。例如在腳本中加入一些破壞計(jì)算機(jī)系統(tǒng)的命令,這樣當(dāng)用戶瀏覽網(wǎng)頁時(shí),一旦調(diào)用這類腳本,便會(huì)使用戶的系統(tǒng)受到攻擊。腳本通??梢杂蓱?yīng)用程序臨時(shí)調(diào)用并執(zhí)行。這個(gè)標(biāo)準(zhǔn)基于 JavaScript (Netscape) 和 JScript (Microsoft)。于是 Netscape 的瀏覽器 Navigator 加入了 Javascript,提供了數(shù)據(jù) 驗(yàn)證的基本功能。目前HTML 語言的版本是 ,它是基于 SGML( Standard Generalized Markup Language,標(biāo)準(zhǔn)廣義置標(biāo)語言,是一套用來描述數(shù)字化文檔的結(jié)構(gòu)并管理其內(nèi)容的復(fù)雜的規(guī)范)中的一個(gè)子集演變而來的。 Web 服務(wù)器(或稱 HTTP 服務(wù)器)一方實(shí)時(shí)動(dòng)態(tài)地生成。自 1990年以來 HTML 就一直被用作 World Wide Web 上的信息表示語言,用于描述 Homepage 的格式設(shè)計(jì)和它與 WWW 上其它 Homepage 的連結(jié)信息。 CSS 的英文是 Cascading Style Sheets,中文可以翻譯成串聯(lián)式樣式表。為了解決這個(gè)問題,人們也走了不少彎路,用了一些不好的方法,比如給 HTML 增加很多的屬性結(jié)果將代碼變得很臃腫,將文本變成圖片,過多利用 Table 來排版, 用空白的圖片表示白色的空間沈陽航空航天大學(xué)畢業(yè)設(shè)計(jì)(論文)外文翻譯 —— 譯文 6 等。 5 CSS 簡介 CSS 的編輯方法同 HTML 一樣,也可以是任何文本編輯器或網(wǎng)頁編輯軟件,還有專門用來編輯 CSS 的軟件。 Adapter 使類能夠協(xié)同工作,如果沒有 Adapter,則這些類會(huì)因?yàn)椴患嫒莸慕涌诙鵁o法協(xié)同工作。 ActionServlet ( Command) 使用 perform() 方法將參數(shù)化的類傳遞給 ActionForm .仍然沒有太多討厭的 () 調(diào)用。當(dāng)我說 輸入表單模型 時(shí),是指 ActionForm 表示的是由 HTML 表單設(shè)置或更新的一般意義上的數(shù)據(jù)。 Struts 的控制器是將事件(事件通常是 HTTP post)映射到類的一個(gè) servlet.正如您所料 —— 控制器使用配置文件以使您不必對(duì)這些值進(jìn)行硬編碼。 JSP 文件使用 JSP 標(biāo)記讀取來自 ActionForm bean 的信息。就 Struts 而言,這是通過作為實(shí)際業(yè)務(wù)邏輯“瘦”包裝的 Action 類完成的。 Controller(控制器) ,控制器接收來自瀏覽器的請求,并決定將這個(gè)請求發(fā)往何處。 Structs 是一組相互協(xié)作的類、 servlet 和 JSP 標(biāo)記,它們組成一個(gè)可重用的 MVC 2 設(shè)計(jì)。 Struts實(shí)現(xiàn)的重點(diǎn)在 C(Controller),包括 ActionServlet/RequestProcessor 和我們定制的 Action,也為 V(View)提供了一系列定制標(biāo)簽( Custom Tag)。比較兩個(gè)文件時(shí),該插件首先檢查是否有另一個(gè)插件可以解釋這些文件的結(jié)構(gòu)。為了擴(kuò)展現(xiàn)有 Eclipse 功能或在其上進(jìn)行構(gòu)建,插件將具體的擴(kuò)展貢獻(xiàn)給由其他插件暴露的擴(kuò)展點(diǎn)。 Eclipse 由一個(gè)小程序?qū)訕?gòu)成,其中包含許多功能模塊或 Eclipse 術(shù)語中所謂的“插件”。而且,在開發(fā)完代碼并使用 JDT對(duì)編寫和執(zhí)行 JUnit 測試的內(nèi)置支持對(duì)代碼進(jìn)行單元測試之后,可以使用 Eclipse的一流 Java 調(diào)試器調(diào)試在運(yùn)行時(shí)遇到的任何問題。 JSP 技術(shù)很容易整合到多種應(yīng)用體系結(jié)構(gòu)中,以利用現(xiàn)存的工具和技巧,并且能擴(kuò)展到支持企業(yè)級(jí)的分布式應(yīng)用中。 Sun 公司還開發(fā)了 JDBC- ODBC bridge,利用此技術(shù) Java程序可以訪問帶有 ODBC 驅(qū)動(dòng)程序的數(shù)據(jù)庫,目前大多數(shù)數(shù)據(jù)庫系統(tǒng)都帶有 ODBC 驅(qū)動(dòng)程序,所以 Java 程序能訪問諸如 Oracle、 Sybase、 MS SQL Server 和 MS Access 等數(shù)據(jù)庫。標(biāo)準(zhǔn)的JSP 標(biāo)識(shí)能夠訪問和實(shí)例化 JavaBeans 組件,設(shè)置或者檢索組件屬性,下載 Applet,以及執(zhí)行用其他方法更難于編碼和耗時(shí)的功能。開發(fā)人員能夠共享和交換執(zhí)行普通操作的組件,或者使得這些組件為更多的使用者和客戶團(tuán)體所使用。由于核心邏輯被封裝在標(biāo)識(shí)和 JavaBeans 中,所以 Web 管理人員和頁面設(shè)計(jì)者,能夠編輯和 使用 JSP 頁面,而不影響內(nèi)容的生成。 JSP 具備了 Java 技術(shù)的簡單易用,完全的面向?qū)ο?,具有平臺(tái)無關(guān)性且安全可靠,主要面向因 特網(wǎng)的所有特點(diǎn)。 JSP 與 Java Servlet 一樣,是在服務(wù)器端執(zhí)行的,通常返回該客戶端的就是一個(gè) HTML 文本,因此客戶端只要有瀏覽器就能瀏覽。網(wǎng)頁還能通過 tags 和 scriptlets訪問存在于服務(wù)端的資源的應(yīng)用邏輯。用 JSP 訪問可重用的組件,如 Servlet、 JavaBean 和基于 Java 的 Web 應(yīng)用程序。是由 Sun Microsystems公司倡導(dǎo)、許多公司參與一起建立的一種動(dòng)態(tài)網(wǎng)頁技術(shù)標(biāo)準(zhǔn)。s standard (is also called HTML+) to draw up, but some the partial experimental nature draft standard widely has been used, the mostly outstanding Web browser (for example Netscape and so on) can explain in the part new mark, therefore introduced in this chapter some new mark has been accepted by the most browsers. 7 Js script language synopsis JS is javascrip, Javascript is one kind the script language which es by the Netscape LiveScript development, the main purpose is to solve the server terminal language, for instance Perl, carryover speed question. At that time served the end to need to carry on the confirmation to the data, because the work speed was quite slow, only then , the confirmation step waste39。t define the documents information to precisely demonstrate and arrange, but is only 沈陽航空航天大學(xué)畢業(yè)設(shè)計(jì)(論文)外文翻譯 —— 原文 8 suggested how the Web browser (for example Mosiac, Netscape and so on) should demonstrate and arrange these information, is decided finally in front of user39。s request, and decided that sends out where this request. Speaking of Struts, the controller is an order design pattern which realizes by servlet. 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。 外文翻譯原文及譯文 學(xué) 院 計(jì)算機(jī)學(xué)院 專 業(yè) 計(jì)算機(jī)科學(xué)與技術(shù) 班 級(jí) 8401010x 學(xué) 號(hào) 20200401010xx 姓 名 指導(dǎo)教師 負(fù)責(zé)教師 沈陽航空 航天大學(xué) 2020 年 6 月沈陽航空航天大學(xué)畢業(yè)設(shè)計(jì)(論文)外文翻譯 —— 原文 1 JSP and WEB technolog 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 somewhat 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 which 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 u