Servlet和JSP技术概述

以下是资料介绍,如需要完整的请充值下载. 本资料已审核过,确保内容和网页里介绍一致.  
无需注册登录,支付后按照提示操作即可获取该资料.
资料介绍:

Servlet和JSP技术概述(中文3300字,英文2200字)
Servlet是运行在Web服务器或应用服务器上的JAVA程序,充当从Web浏览器或其他HTTP客户端的请求和HTTP服务器上的数据库或应用程序之间的一个中间层。他们的工作是执行以下任务。
最终用户通常在一个Web页面上的HTML表单中输入这些数据。然而,数据还有可能来自applet或定制的HTTP客户端程序。
从客户端传送到Web服务器的数据有两种,它们分别为用户在表单中输入的显式数据,以及后台的HTTP信息。两种数据都很重要。HTTP信息包括cookie、浏览器所能识别的媒体类型和压缩模式等。
这个过程可能需要访问数据库、执行RMI或EJB调用、调用Web服务,或者直接计算得出对应的响应。实际的数据可能存储在关系型数据库中。该数据库可能不理解HTTP,或者不能返回HTML形式的结果,所有Web浏览器不能直接与数据库进行会话。即使可以,为了安全上的考虑,我们也不希望让它这么做。同样的道理也适用于大多数其他应用程序。因此,我们需要Web中间层从HTTP流中提取输入数据,与应用程序会话,并将结果嵌入到文档中。
 
An Overview of Servlet and JSP Technology
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.
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.
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.