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

正文內(nèi)容

外文文獻翻譯---servlet和jsp技術(shù)簡介-jsp程序-全文預覽

2025-06-16 12:14 上一頁面

下一頁面
  

【正文】 Marty曾在馬尼拉講授過 jsp 和 servlet 培訓課程, 那兒對 servlet 和 jsp 技術(shù)抱很大的興趣。這與其他 CGI 方案形成鮮明的對比,這些 CGI 方案在初期都需要為購買專利軟件包投入大量的資金。為 Macromedia JRun編寫的 servlet,可以不經(jīng)過任何修改地在 Apache Tomcat, Microsoft Inter Information Server,IBM WebSphere, iPla Enterprise Serve, Oracle9i AS 或者 StrNine WebStar 上運行。 可移植性 Servlet使用 Java編程語言,并且遵 循標準的 API。 Servlet 能夠直接于 Web服務器對話,而常規(guī)的 CGI程序做不到這一點,至少在不使用服務器專有 API的情況下是這樣。然而, servlet會一直停留在內(nèi)存中(即使請求處理完畢),因而可以直接存儲客戶請求之間的任意復雜數(shù)據(jù)。同樣的情況,如果使用servlet,則啟動 N 個線程, 但是 僅僅載入 servlet 類的單一副本。 高效 應用傳統(tǒng)的 CGI,針對每個 HTTP 請求都用啟動一個新的進程。 理論上講, servlet并非只用于處理 HTTP請求的 Web服務器或應用服務器,它同樣可以用于其他類型的服務器。想象以下,如果一個搜索引擎網(wǎng)站完全使用 applet,那么用戶將會看到: “正在下載 50TB的 applet,請等待! ”。具體應該采用哪種方式要根據(jù)具體情況而定,但后一種方式常常更為方便,因為它只需簡單地等待用戶的請求?;?cookie值針對具體用戶構(gòu)建頁面的情況尤其普遍。 例如,搜索引擎生成的頁面,以及在線商店的訂單確認頁面,都要針對特定的用戶請求而產(chǎn)生。 HTTP響應數(shù)據(jù)的發(fā)送過程涉及告知瀏覽器或其他客戶程序所返回文檔的類型(如 HTML),設(shè)置 cookie和緩存參數(shù),以及其他類似的任務。 5. 發(fā)送隱式的 HTTP響應數(shù)據(jù)。因此,我們需要 Web 中間層從 HTTP 流中提取輸入數(shù)據(jù),與應用程序會話,并將結(jié)果嵌入到文檔中。實際的數(shù)據(jù)可能存儲在關(guān)系型數(shù)據(jù)庫中。兩種數(shù)據(jù)都很重要。 客戶端 用戶一般在頁面的 HTML 表單中輸入這些數(shù)據(jù)。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. 摘要: Servlet 程序運行在服務器端,在動態(tài)的生成 Web頁面方面與傳統(tǒng)的 CGI和許多其他的類似 CGI技術(shù)相比, Java Servlet更高效,更容易使用,功能更強大,并且擁有更好的可移植性,更節(jié)省投資。ll only be discussing HTTP servlets. The Advantages of Servlets Over Traditional CGI Java servlets are more efficient, easier to use, more powerful, more portable, safer, and cheaper than traditional CGI and many alternative CGIlike technologies. 1. Efficient With traditional CGI, a new process is started for each HTTP request. If the CGI program itself is relatively short, the overhead of starting the process can dominate the execution time. With servlets, the Java virtual machine stays running and handles each request with a lightweight Java thread, not a heavyweight operating system process. Similarly, in traditional CGI, if there are N requests to the same CGI program, the code for the CGI program is loaded into memory N times. With servlets, however, there would be N threads, but only a single copy of the servlet class would be loaded. This approach reduces server memory requirements and saves time by instantiating fewer objects. Finally, when a CGI program finishes handling a request, the program terminates. This approach makes it difficult to cache putations, keep database connections open, and perform other optimizations that rely on persistent data. Servlets, however, remain in memory even after they plete a response, so it is straightforward to store arbitrarily plex data between client requests. 2. Convenient Servlets have an extensive infrastructure for automatically parsing and decoding HTML form data, reading and setting HTTP headers, handling cookies, tracking
點擊復制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1