JSP内建对象

  1.out对象

1 <% 
2      out.println("<h1>Hello World </h1>");
3   %>

  2.page对象

  指的jsp当前对象

  3.pageContext对象

  //javax.servlet.jsp.PageContext 对象

  常见方法:.setAttribute(“x","100") //设置属性,放置一个键值对

  4.request 和response 对象

  //javax.servlet.http.HttpServletRequest 接口

  //javax.servlet.http.HttpServletResponse 接口

  5.session对象

  //javax.servlet.http.HttpSession 接口

  6.application config 和 exception 对象

  

原文地址:https://www.cnblogs.com/dongtian/p/5827672.html