jsp----2内置对象

    xiaoxiao2023-11-16  165

    jsp内置对象 不需要new

    1 out  向客户端输出内容

    2 pageContext   

    3 request  请求对象  存储客户端向服务端发送请求消息 

      String       request.getParameter(String name)

      String[] request.getParamterValues(String name)  checkBox

      setCharacterEncoding("编码格式utf-8")  //设置请求的编码 

    getRequestDispatcher("b.jsp").forward();请求转发 的方式跳转页面

    getServerContext() 获取项目的ServletContext对象

     

    4 response 

    5 session

    6 application

    7 config

    8 page

    9 exception

     

    最新回复(0)