计算机 库 英文翻译,计算机专业英文翻译

a7f4a3f590493a1e451dd952a488fd7c.gif 计算机专业英文翻译

(21页)

8ce70551d5eda0ba6169c3c767af8130.gif

本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!

14.9 积分

Using Scripting ElementsImplicit JSP Scripting ObjectsScripting elements can use predefined variables that the container assigns as references to implicit objects (Table 16-1) to access request and application data. These objects are instances of classes defined by the servlet and JSP specifications. Appendix D contains complete descriptions of all methods for each class, and they are briefly introduced here and used in a number of examples in this chapter.Table 16-1. Implicit JSP objectsVariable nameJava typeapplicationjavax.servlet.ServletContextconfigjavax.servlet.ServletConfigexceptionjava.lang.Throwableoutjavax.servlet.jsp.JspWriterpagejava?lang?ObjectpageContextjavax.servlet.jsp.PageContextrequestjavax?servlet?http-HttpServletRequestresponsejavax?servlet.http.HttpServletResponsesessionjavax.servlet.http.HttpSessionThese objects provide access to the same information (and more) as the implicit variables you can use in EL expressions, but it's not a one-to-one match: pageContextThe pageContext variable contains a reference to an instance of the class named javax.servlet.jsp.PageContext. It provides methods for accessing references to all the other objects and attributes for holding data that is shared between components in the same page. It's the same object that you can access with the ${pageContext} EL expression. Attribute values for this object represent the page scope; they are the same objects as are available to the EL world as a Map represented by the ${pageScope} expression.requestThe request variable contains a reference to an instance of a class that implements an interface named javax.servlet.http.HttpServletRequest. It provides methods for accessing all the information that*s available about the current request, such as request parameters, attributes, headers, and cookies. It's the same object that you can access with the $ {pageContext.request} EL expression. Attribute values for this object represent the request scope; they are the same objects as are available to the EL world as a Map represented by the ${ requestScope} expression.responseThe response variable contains a reference to an object representing the current response message. Its an instance of a class that implements the javax.servlet.http.HttpServletResponse interface, with methods for setting headers and the status code, and adding cookies. It also provides methods related to session tracking. These methods are the response methods youTe most likely to use. The same object can be accessed with the ${pageContext.response} EL expression.sessionThe session variable allows you to access the clients session data, managed by the server. It's assigned a reference to an instance of a class that implements the javax.servlet.http.HttpSession interface, which provides access to session data as well as information about the session, such as when it was created and when a request for the session was last received. 关 键 词: 计算机专业 英文翻译

4d91c43bfc72ca913299809b07b4968f.gif  天天文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值