jsp隐式对象_JSP中的隐式对象

jsp隐式对象

JSP provide access to some implicit object which represent some commonly used objects for servlets that JSP page developers might need to use. For example you can retrieve HTML form parameter data by using request variable, which represent the HttpServletRequest object.

JSP提供对某些隐式对象的访问,这些隐式对象表示JSP页面开发人员可能需要使用的servlet的一些常用对象。 例如,您可以使用代表HttpServletRequest对象的请求变量来检索HTML表单参数数据。

Jsp Implicit Object
以下是JSP隐式对象 (Following are the JSP implicit object)
Implicit Object Description
requestThe HttpServletRequest object associated with the request.
responseThe HttpServletRequest object associated with the response that is sent back to the browser.
outThe JspWriter object associated with the output stream of the response.
sessionThe HttpSession object associated with the session for the given user of request.
applicationThe ServletContext object for the web application.
configThe ServletConfig object associated with the servlet for current JSP page.
pageContextThe PageContext object that encapsulates the enviroment of a single request for this current JSP page
pageThe page variable is equivalent to this variable of Java programming language.
exceptionThe exception object represents the Throwable object that was thrown by some other JSP page.
隐式对象 描述
请求 与请求关联的HttpServletRequest对象。
响应 与发送回浏览器的响应关联的HttpServletRequest对象。
与响应的输出流关联的JspWriter对象。
会议 与给定请求用户的会话相关联的HttpSession对象。
应用 Web应用程序的ServletContext对象。
配置 与当前JSP页面的servlet关联的ServletConfig对象。
pageContext PageContext对象,该对象封装了对此当前JSP页面的单个请求的环境
page变量等效于Java编程语言的变量。
例外 异常对象表示由其他JSP页面引发的Throwable对象。

All of them are very useful and you will slowly get to know all of them as you will move ahead into your career working on live projects. For example: When you will create an application where in User sessions have to be created session will come into picture, request is used when you have form submissions in your application etc.

所有这些都是非常有用的,随着您逐步进入现场项目的职业,您将逐渐了解它们。 例如:当您将创建一个必须在用户会话中创建session的应用程序时, session就会变成图片,当您在应用程序中提交表单时使用request

We will learn about these in details later on.

稍后我们将详细了解这些内容。

翻译自: https://www.studytonight.com/jsp/implicit-object-in-jsp.php

jsp隐式对象

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值