`
哈达f
  • 浏览: 114835 次
  • 性别: Icon_minigender_1
  • 来自: 广西
社区版块
存档分类
最新评论

九大内置对象

 
阅读更多

 public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
}

page  ---  代表当前的jsp翻译后的servlet对象:也是就是Object page = this,是一个servlet对象
pageContext  ---  PageContext代表页面上下文,可以从这个对象中获取一系列页面数据,是一个PageContext对象
application  ---  应用服务上下文,可以获取web服务共享所有的数据,是一个ServletConext对象
requset  ---  请求消息,封装了用户请求消息,是一个HttpRequset对象
response  ---  响应消息,封装了web服务对客户请求的响应,是一个HttpResponse对象
session  ---  会话,记录用户一次会话的的信息,储存用户的数据,是也HttpSession对象
config  ---  配置信息,是封装了ervlet初始化的配置信息,如带一些参数封装到了这个ServletConfig中然后在servlet中传递给init初始化方法,是一个ServletConfig对象
out  ---  输出字符,又response中获得的一个PrintWriter对象,用于输出信息,是一个JspWriter对象
exception  ---  封装了页面出现的异常信息,用于页面异常信息的处理,是一个Exception对象
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics