首页 > Web开发 > 详细

JSP内置对象

时间:2014-11-23 21:30:11      阅读:366      评论:0      收藏:0      [点我收藏+]

jsp隐含对象

request:请求对象(如请求标头、方法、参数)  scope:Request

getParameter()//

getParameterNames()//

getParameterValues()//

response:相应对象  scpoe:Page

pageContext:页面上下文对象(当前页面运行的一些属性)  scope:Page

findAttribute()//

getAttribute()//

getAttributeScope()//

session:回话对象(服务器与客户端所建立的回话,用于不同的JSP页面中保留客户的信息,如:在线购物、客户轨迹跟踪)  scope:Session

getId()、getValue()、getValueNames()、putValue()

HTTP:无状态协议

Web server:对每一个客户端请求都没有历史记忆

session:保存客户端状态信息

由Web sever:存于客户端

客户端的每次访问都要把session记录传递给Web server

Web server读取客户端提交的session来获取客户端的状态信息

application:应用程序对象  scope:Application

out:输出对象  scope:Page

clear()、clearBuffer()、flush()、print()、println()

config:配置对象  scope:Page

page:页面对象  scope:Page

exception:异常对象  scope:Page

getMessage()、toString()

 

JSP内置对象

原文:http://www.cnblogs.com/duduSunny/p/4117307.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!