【正文】
. Again, both varieties are critical to effective development. Sending HTTP response data involves telling the browser or other client what type of document is being returned (., HTML), setting cookies and caching parameters, and other such tasks. Why Build Web Pages Dynamically? many client requests can be satisfied by prebuilt documents, and the server would handle these requests without invoking servlets. In many cases, however, a static result is not sufficient, and a page needs to be generated for each request. There are a number of reasons why Web pages need to be built onthefly: 1. The Web page is based on data sent by the client. For instance, the results page from search engines and orderconfirmation pages at online stores are specific to particular user requests. You don39。存在幾種低廉的插件,通過應(yīng)用這些插件, Microsoft IIS 和 Zeus 6 也同樣支持 servlet 和 jsp 技術(shù),它們運行在 Windows, Unix/Linus,MacOS,VMS,和 IBM大型機 操作系統(tǒng)之上。實現(xiàn)這項預防措施的難度可能超出我們的想象,在廣泛應(yīng)用的 CGI 庫中,不斷發(fā)現(xiàn)由這類問題引發(fā)的弱點。同樣,他們的 servelt 和 jsp 沒有任何部分需要重寫。首先,這兩個國家都擁有大量訓練有素的軟件開發(fā)人員。 廉價 對于開發(fā)用的網(wǎng)站、低容量或中等容量網(wǎng)站的部署,有大量免費或極為廉價的 Web服務(wù)器可供選擇。 可移植性 Servelt 使用 Java 編程語言,并且遵循標準的 API。然而, servelt會一直停留在內(nèi)存中(即使請求處理完畢),因而可以直接存儲客戶請求之間的任意復雜數(shù)據(jù)。 效率 應(yīng)用傳統(tǒng)的 CGI,針對每個 HTTP 請求都用啟動一個新的進程。想象以下,如果一個搜索引擎網(wǎng)站 完全使用 applet,那么用戶將會看到: “ 正在下載 50TB 的 applet,請等待! ” ?;?cookie 值針對具體用戶構(gòu)建頁面的情況尤其普遍。HTTP響應(yīng)數(shù)據(jù)的發(fā)送過程涉及告知瀏覽器或其他客戶程序所返回文檔的類型(如 HTML),設(shè)置 cookie 和緩存參數(shù),以及其他類似的任務(wù)。因此,我們需要 Web 中間層從 HTTP 流中提取輸入數(shù)據(jù),與應(yīng)用程序會話,并將結(jié)果嵌入到文檔中。兩種數(shù)據(jù)都很重要。 畢業(yè)設(shè)計(論文) 文獻綜述和外文翻譯 設(shè)計 (論文 )題目 網(wǎng)上購物系統(tǒng)設(shè)計與實現(xiàn) 學 院: 計算機科學與工程學院 專 業(yè): 軟件工程 年 級: 2021 級 1 文獻綜述 摘要: Servlet 程序在服務(wù)器端運行,動態(tài)地生成 Web 頁面與傳統(tǒng)的 CGI 和許多其他類似 CGI的技術(shù)相比, Java Servlet 具有更高 的效率,更容易使用,功能更強大,具有更好的可移植性,更節(jié)省投資。 圖 Web服務(wù)器的單箭頭,但實際上從客戶端傳送到 Web服務(wù)器的數(shù)據(jù)有兩種,它們分別為用戶在表單中輸入的顯式數(shù)據(jù),以及后臺的 HTTP 信息。對應(yīng)大多數(shù)其他應(yīng)用 2 程序,也存在類似的問題。同樣,兩種數(shù)據(jù)對開發(fā)來說都式至關(guān)重要的。兩種輸入都可用來構(gòu)建輸出頁面。 如果數(shù)據(jù)存儲在數(shù)據(jù)庫中,那么,即使客戶端使用動態(tài) Web 內(nèi)容,比如 applet,我們依舊需要執(zhí)行服務(wù)器端處理。 Servlet 相對于“傳統(tǒng)” CGI 的優(yōu)點 和傳統(tǒng) CGI及許多類 CGI技術(shù)相比, Java servelt 效率更高、更易用、更強大、更容易移植、更安全、也更廉價。這種方式難以緩存計算結(jié)果,保持 數(shù)據(jù)庫連接打開,或是執(zhí)行依靠持續(xù)性數(shù)據(jù)的其他優(yōu)化。 Servelt 還能維護請求之間的信息,使得諸如會話跟蹤和計算結(jié)果緩存等技術(shù)變得更 為簡單。他們是 java2 平臺企業(yè)版的一 部分,所以對 servlet 的支持越來越普遍。 那么,為什么印度和菲律賓都對這項技術(shù)著呢感興趣呢?我們推測答案可能分兩部分。沒有問題:他們可以轉(zhuǎn)而使用 Macromedia JRun Professional,該服務(wù)器支持分布式應(yīng)用。因此 ,CGI 程序必須仔細地過濾掉那些可能被外殼特殊處理的字符,如反引導和分號。 主流 雖然存在許多很好的技術(shù),但是,如果提供商助支持他們,或開發(fā)人員不知道如何使用這些技術(shù),那么它們的優(yōu)點又如何體現(xiàn)呢? servelt 和 jsp 技術(shù)得到服務(wù)器提供商的廣泛支持,包括 Apache, Oracle, IBM, Sybase, BEA, Maromedia, Causho, Sun/iPla,New Atlanta, ATG, Fujitsu, Lutris, Silverstream, World Wide Web Consortinrm ,以及其他服務(wù)器。t speak HTTP or return results in HTML, so the Web browser can39。t know how to use them, what good are they? Servlet and JSP technology is supported by servers from Apache, Oracle, IBM, Sybase, BEA, Macromedia, Caucho, Sun/iPla, New Atlanta, ATG, Fujitsu, Lutris, Silverstream, the World Wide Web Consortium (W3C), and many others. Several lowcost plugins add support to Microsoft IIS and Zeus as well. They run on Windows, Unix/Linux, MacOS, VMS, and IBM mainframe operating systems. They are the single most popular application of the Java programming language. They are arguably the most popular choice for developing medium to large Web applications. They are used by the airline industry (most United Airlines and Delta Airlines Web sites), emerce (), online banking (First USA Bank, Banco Popular de Puerto Rico), Web search engines/portals (), large financial sites (American Century Investments), and hundreds of other sites that you visit every day. Of course, popularity alone is no proof of good technology. Numerous counterexamples abound. But our point is that you are not experimenting with a new and unproven technology when you work with serverside Java.