畢業論文

打賞
當前位置: 畢業論文 > 外文文獻翻譯 >

Servlet與JSP技術英文文獻和中文翻譯

時間:2019-04-13 14:39來源:畢業論文
A Servlets Job Servlets are Java programs that run on Web or application servers, acting as a middle layer between requests coming from Web browsers or other HTTP clients and databases or applications on the HTTP server. Their job is to perf

A Servlet's Job Servlets are Java programs that run on Web or application servers, acting as a middle layer between requests coming from Web browsers or other HTTP clients and databases or applications on the HTTP server. Their job is to perform the following tasks.34466
1.1  Read the explicit data sent by the client.
The end user normally enters this data in an HTML form on a Web page. However, the data could also come from an applet or a custom HTTP client program.
1.2  Read the implicit HTTP request data sent by the browser.
Figure 1-1 shows a single arrow going from the client to the Web server (the layer where servlets and JSP execute), but there are really two varieties of data: the explicit data that the end user enters in a form and the behind-the-scenes HTTP information. Both varieties are critical. The HTTP information includes cookies, information about media types and compression schemes the browser understands, and so on.
1.3  Generate the results.
This process may require talking to a database, executing an RMI or EJB call, invoking a Web service, or computing the response directly. Your real data may be in a relational database. Fine. But your database probably doesn't speak HTTP or return results in HTML, so the Web browser can't talk directly to the database. Even if it could, for security reasons, you probably would not want it to. The same argument applies to most other applications.You need the Web middle layer to extract the results inside a document.
1.4  Send the explicit data (i.e., the document) to the client.
This document can be sent in a variety of formats, including text (HTML or XML), binary (GIF images), or even a compressed format like gzip that is layered on top of some other underlying format. But, HTML is by far the most common format, so an important servlet/JSP task is to wrap the results inside of HTML.
1.5  Send the implicit HTTP response data.
Figure 1-1 shows a single arrow going from the Web middle layer (the servlet or JSP page) to the client. But, there are really two varieties of data sent: the document itself and the behind-the-scenes HTTP information. 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 (e.g., HTML), setting cookies and caching parameters, and other such tasks.
源¥自%六:維;論-文'網=www.aftnzs.live

英文出處:
An Overview of  Servlet  and  JSP  Technology  Nagle, Wiegley
B.原文的翻譯 Servlet和JSP技術簡述
摘要:Servlet程序在服務器端運行,動態地生成Web頁面與傳統的CGI和許多其他類似CGI的技術相比,Java Servlet具有更高的效率,更容易使用,功能更強大,具有更好的可移植性,更節省投資。論文網
關鍵字:JSP技術;Servlet;HTTP服務
  Servlet的功能
Servlet是運行在Web或應用服務器上的Java程序,它是一個中間層,負責連接來自Web瀏覽器或其他HTTP客戶程序的請求和HTTP服務器上的數據庫或應用程序。Servlet的工作是執行西門的任務,如圖1.1所示 。
1.1 Web中間件的作用
1.1 讀取客戶發送的顯式數據
最終用戶一般在頁面的HTML表單中輸入這些數據。然而,數據還有可能來自applet或定制的HTTP客戶程序。
1.2 讀取由瀏覽器發送的隱式請求數據
圖1.1中顯示了一條從客戶端到Web服務器的單箭頭,但實際上從客戶端傳送到Web服務器的數據有兩種,它們分別為用戶在表單中輸入的顯式數據,以及后臺的HTTP信息。兩種數據都很重要。HTTP信息包括cookie、瀏覽器所能識別的媒體類型和壓縮模式等。
1.3 生成結果
這個過程可能需要訪問數據庫、執行RMI或EJB調用、調用Web服務,或者直接計算得出對應的響應。實際的數據可能存儲在關系型數據庫中。該數據庫可能不理解HTTP,或者不能返回HTML形式的結果,所有Web瀏覽器不能直接與數據庫進行會話。即使它能夠做到這一點,為了安全上的考慮,我們也不希望讓它這么做。對應大多數其他應用程序,也存在類似的問題。因此,我們需要Web中間層從HTTP流中提取輸入數據,與應用程序會話,并將結果嵌入到文檔中。 Servlet與JSP技術英文文獻和中文翻譯:http://www.aftnzs.live/fanyi/20190413/31973.html
------分隔線----------------------------
推薦內容
双色球走势图带连线