日期:2014-05-16 浏览次数:20404 次
?
| ? | 对应servlet类,对象 | 说明 | 
| request | HttpServletRequest | 用户端请求,此请求会包含来自GET/POST请求的参数 | 
| response | HttpServletResponse | 网页传回用户端的回应 | 
| pageContext | PageContext | 网页的属性是在这里管理 | 
| session | HttpSession | 与请求有关的会话期 | 
| application | ServletContext | 正在执行的内容 | 
| out | JspWriter | 用来传送回应的输出 | 
| config | ServletConfig | servlet的构架部件 | 
| page | this | JSP网页本身 | 
| exception | Throwable | 针对错误网页,未捕捉的例外 | 
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
web.xml中设置session的超时时间:
<!-- 设置session的超时时间,单位“分钟” --> <session-config> <session-timeout>20</session-timeout> </session-config>
?