- 对象 类 常用方法
- application ServletContext Web应用(getAttribute(str),setAttribute(str))
- config ServletConfig JSP配置信息(getInitParam(str))
- session HttpSession 会话(getAttribute(str))
- page this 页面
- pageContext PageContext 页面上下文(getServletContext(),getServletConfig())
- request HttpServletRequest 客户端请求(获取请求参数、请求头;操作属性;执行forward或
include)
(getParameter(str),getAttribute(str),setCharacterEncoding(str))
(getRequestDispatcher("
/...").foward/include(req,resp))
- response HttpServletResponse 服务端响应(非字符响应、重定向、增加cookie)
(sendRedirect(str),getOutputStream(),addCookie(c))
- out JspWriter 页面输出流(println(str))
- exception Throwable 异常(getMassage(),printStackTrace())