对象名称 | 类型 | 作用 | |
---|---|---|---|
pageContext | PageContext | 当前页面共享数据,可以通过此对象获取其它8个对象 | 域对象 |
request | HttpServletRequest | 一次请求间访问多个资源 (转发) | 域对象 |
session | HttpSession | 一次会话的多个请求间 | 域对象 |
application | ServletContext | 所有用户间共享数据(servlet容器) | 域对象 |
response | HttpServletResponse | 响应对象 | |
page | Object | 当前页面(servlet)对象,this | |
out | JspWriter | 输出对象 | |
config | servletConfig | Servleet的配置对象 | |
exception | Throwable | 异常对象,设置isErrorPage属性为true的页面才能使用 |
域对象的作用是不同servlet之间可以进行通信(数据传递)。