freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

servlet和jsp技術(shù)簡(jiǎn)述英文文獻(xiàn)-免費(fèi)閱讀

  

【正文】 它們用在航空業(yè)、電子商務(wù)、在線(xiàn)銀行、 web 搜索引擎、門(mén)戶(hù)、大型金融網(wǎng)站、以及成百上千您日常光顧的其他網(wǎng)站。 問(wèn)題的第二個(gè)來(lái)源是,一些 CGI 程序用不自動(dòng) 檢查數(shù)組和字符串邊界的語(yǔ)言編寫(xiě)而成。如果項(xiàng)目變得極為龐大,錯(cuò)綜復(fù)雜,他們或許希望使用 Enterprise JavaBeans 來(lái)封裝他們的商業(yè)邏輯。其次,這兩個(gè)國(guó)家的貨幣對(duì)美元的匯率都極為不利。因此,通過(guò)使用 servelt 和 jsp,我們可以從免費(fèi)或廉價(jià)的服務(wù)器開(kāi)始,在項(xiàng)目獲得初步成功后,在移植到更高性能或高級(jí)管理工具的昂貴的服務(wù)器上。所有主要的 Web 服務(wù)器。 便利 Servelt 提供大量的基礎(chǔ)構(gòu)造,可以自動(dòng)分析和解碼 HTML 的表單數(shù)據(jù),讀取和設(shè)置 HTTP 報(bào)頭,處理 cookie,跟蹤會(huì)話(huà),以及其他次類(lèi)高級(jí)功能。如果 CGI 程序自身相對(duì)比較簡(jiǎn)短,那么啟動(dòng)進(jìn)程的開(kāi)銷(xiāo)會(huì)占用大部分執(zhí) 行時(shí)間。顯然,這樣很愚蠢;這種情況下,我們需要與數(shù)據(jù)庫(kù)進(jìn)行會(huì)話(huà)。 頁(yè)面由頻繁改變的數(shù)據(jù)導(dǎo)出。 動(dòng)態(tài)構(gòu)建網(wǎng)頁(yè)的原因 預(yù)先建立的文檔可以滿(mǎn)足客戶(hù)的許多請(qǐng)求,服務(wù)器無(wú)需調(diào)用 servlet 就可以處理這些請(qǐng)求。 ( 4) 向客戶(hù)發(fā)送顯式數(shù)據(jù)(即文檔)。 HTTP 信息包括 cookie、瀏覽器所能識(shí)別的媒體類(lèi)型和壓縮模式等。 關(guān)鍵字 : JSP 技術(shù), Servlet, HTTP 服務(wù) Servlet 的功能 Servlets 是運(yùn)行在 Web 或應(yīng)用服務(wù)器上的 Java 程序,它是一個(gè)中間層,負(fù)責(zé)連接來(lái)自 Web 瀏覽器或其他 HTTP 客戶(hù)程序的請(qǐng)求和 HTTP 服務(wù)器上的數(shù)據(jù)庫(kù)或應(yīng)用程序。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 need the Web middle layer to extract the results inside a document. 4. Send the explicit data (., 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 pressed format like gzip that is layered on top of some other underlying format. But, HTML is by far the most mon format, so an important servlet/JSP task is to wrap the results inside of HTML. 5. Send the implicit HTTP response data. Figure 11 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 behindthescenes 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 (., 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。t know what to display until you read the data that the user submits. Just remember that the user submits two kinds of data: explicit (., HTML form data) and implicit (., HTTP request headers). Either kind of input can be used to build the output page. In particular, it is quite mon to build a userspecific page based on a cookie value. 2. The Web page is derived from data that changes frequently. If the page changes for every request, then you certainly need to build the response at request time. If it changes only periodically, however, you could do it two ways: you could periodically build a new Web page on the server (independently of client requests), or you could wait and only build the page when the user requests it. The right approach depends on the situation, but sometimes it is more convenient to do the latter: wait for the user request. For example, a weather report or news headlines site might build the pages dynamically, perhaps returning a previously built page if that page is still up to date. 3. The Web page uses information from corporate databases or other serverside sources. If the information is in a database, you need serverside processing even if the client is using dynamic Web content such as an applet. Imagine using an applet by itself for a search engine site: Downloading 50 terabyte applet, please wait! Obviously, that is silly。 Servlet 的工作是執(zhí)行西門(mén)的任務(wù),如圖 所示 。 ( 3
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1