JSP九大内置对象

1、out:

out.print()   和 out.println()  显示的效果一样

2、pageContext:

3、request:(请求对象   存储客户端向服务端发送的请求消息)

getAttribute() //获取对象

getParameter()//获取字符串

getParameterValues()//获取某个name的所有属性,e.g. checkbox

getRequestDispatcher("a.jsp").forword(request, response)  //请求转发

setCharacterEncoding()  //设置编码

getServerContext()

setAttribute()

4、response:(响应消息)

addCookie()

sendRedirect() //重定向

5、session:

6、application:

7、config:

8、page:

9、exception:

原文地址:https://www.cnblogs.com/DDiamondd/p/10692304.html