- 1、本文档共12页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
文文献及翻译(Servlet和JSP技术简述)
An Overview of Servlet and JSP Technology
Nagle ,Wiegley
Abstract: Servlet program running in the server-side, dynamically generated Web page with the traditional CGI and many other similar compared to CGI technology, Java Servlet with a more efficient, easier to use, more powerful and has better portability, more savings to invest. .
Keywords: JSP Technology;Servlet;HTTP server
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 Web middleware role
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 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.
1.4 Send the explicit data (i.e., the document) to the client
您可能关注的文档
最近下载
- 必威体育精装版人教版小学六年级下册音乐全册教案.doc
- 汽车构造拆装实习报告.pdf VIP
- 《分香蕉》优质课课件(北师大版数学二年级上册).pptx VIP
- 天然气蒸汽锅炉安全操作规程.docx
- 防防呆法防错法IE七大手法演示文稿.ppt VIP
- 幼儿园大班数学活动《小动物住新房》.ppt VIP
- 党的二十届三中全会精神测试题300道(单选、多选、判断、填空).docx VIP
- 劳动项目七 洗碗筷(课件)二年级下册劳动人教版.ppt
- 医院综合病房楼空调系统施工组织设计方案范本.doc
- 平方根与立方根的运算专项训练(20题)-重要笔记七年级数学下学期重要考点练习(人教版)(含答案析).docx
文档评论(0)