中北大学毕业设计英文文献及中文翻译

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

毕业设计说明书

英文文献及中文翻译

学生姓名:学号南社区0906064109

学院:电子与计算机科学技术学院

专业:网络工程

指导教师:

刘爽英

2018年6月

An Overview of Servlet and JSP Technology

Gildas Avoi ne and Philippe Oechsli n

EPFL, Lausa nne, Switzerla nd

1.1A Servlet's Job

Servlets are Java programs that run on Web or application servers, acting as a middle layer betwee n requests coming from Web browsers or other HTTP clie nts and databases or applicatio ns on the HTTP server. Their job is to perform the followi ng

tasks, as illustrated in Figure 1-1b5E2RGbCAP

Web Server

(Servlets JSP)

Figure 1-1 1.Read the explicit data sent by the client. Database

Legacy Application Java Application Web Service

Client (End User)

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 clie nt program EanqFDPw

2.Read the implicit HTTP request data sent by the browser X DiTa9E3d

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 en ters in a form and the behi nd-the-sce nes HTTP in formati on. Both varieties are critical. The HTTP information includes cookies, information about media types and compressi on schemes the browser un dersta nds, and sc RTCTpUDGiT

3.Gen erate 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 relati onal database. Fine. But your database probably does n't speak HTTP or retur n 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 incoming data from the HTTP stream, talk to the application, and embed the results in side a docume nt5PCzVD7HxA

4.Send the explicit data (i.e., the document> to the client-BHrnAiLg

This document can be sent in a variety of formats, including text (HTML or XML>, bi nary (GIF images>, or eve n a compressed format like gzip that is layered on top of some other un derly ing format. But, HTML is by far the most com mon format, so an importa nt servlet/JSP task is to wrap the results in side of HTML H AQX74J0X

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 clie nt. But, there are really two varieties of data sent: the docume nt itself and the behind-the-scenes HTTP information. Again, both varieties are critical to effective developme nt. Sending HTTP resp onse data invo Ives telli ng the browser or other clie nt what type of docume nt is being retur ned (e.g., HTML>, sett ing cookies and cach ing parameters, and other such task LD AYtR y KfE

相关文档
最新文档