JSP九大内置对象
1、out:
out.print() 和 out.println() 显示的效果一样
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。2、pageContext:
3、request:(请求对象 存储客户端向服务端发送的请求消息)
getParameter()//获取单个value值
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:
更多精彩