- 1、本文档共14页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[DOC]-外文文献翻译---Servlet和JSP技术简介-JSP程序
An Overview of Servlet and JSP Technology
Marty Hall and Larry Brown,2000-07, HYPERLINK / Core Servlets and JavaServer Pages chapter 1
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 perform the following tasks, as illustrated in Figure 1-1.
Figure 1-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.
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.
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 doesnt speak HTTP or return results in HTML, so the Web browser cant 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.
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
您可能关注的文档
- Volume 18, iSSue 3 POWER, and SOCIETIES Political Sociology….pdf
- UV LED Curing for Wood Coatings - Phoseon Technology:紫外LED技术- phoseon固化木器涂料.pdf
- WI-QR-CB002责任成本分解列表.doc
- WESTIN九龙山威斯汀酒店软装预算方案.pdf
- X2检验spss.doc
- Women Scientists and Inventors - Home Page - Social :女科学家和发明家-首页-社会.pdf
- X52K铣床的数控化改造设计(可编辑).doc
- x86平台虚拟化技术概览.ppt.pdf
- XXXXX智能化弱电施工组织计划.doc
- xin《有人生病时》教学演示课件.ppt.ppt
最近下载
- 凯爱瑞-益生菌行业:探秘母乳菌LC40,婴童及女性的守护者.docx
- 交管12123学法减分复习题库500道含完整答案【全国通用】.docx
- GIS在审计中应用研究.doc
- 2023造口辅助器具的皮肤保护用品试验方法第1部分:尺寸、表面pH值和吸水性.pdf
- 危险废弃物管理知识培训.pptx VIP
- 2024版有房子有孩子离婚协议书.docx
- 人教版二年级生字表.pdf
- 集合论与图论 Set Theory and Graph Theory(姜守旭).ppt
- 备战2025年中考数学(全国)通关秘籍02 几何图形选填压轴题(含特殊三角形、特殊平行四边形、圆等综合问题)(原卷版).pdf VIP
- 大厦综合物业投标方案(技术标 1155页).doc VIP
文档评论(0)