码迷,mamicode.com
首页 > Web开发 > 详细

jsp内置对象

时间:2016-12-24 09:35:16      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:his   response   全局   --   page   body   exception   cat   exce   

 

jsp

servlet

 

对象名

类型

使用范围

request

HttpServletRequest

请求 浏览器--->服务器

response

HttpServletResponse

返回 服务器--->浏览器

config

ServletConfig

用来获取web.xml中的信息

application

ServletContext

整个项目中的全局信息

exception

Thrawable

捕获异常 try/catch  throws

page

this

当前对象,当前页面对象

out

JspWriter---->PrintWriter

当前页面输出流

pageContext

PageContext

当前页面的上下文,整个页面

Session

HttpSession

会话  浏览器和服务器通讯

jsp内置对象

标签:his   response   全局   --   page   body   exception   cat   exce   

原文地址:http://www.cnblogs.com/Liang-Haishan216/p/6216637.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!