zoukankan      html  css  js  c++  java
  • JSP 4个域对象、7个动作指令、9个内置对象


    4个域对象

    1.HttpServletRequest

    request

    Request域

    2.HttpSession

    session

    Session域

    3.ServletContext

    context

    Application域

    4.PageContext

    page

    Page域


           7个动作指令(标签)

    (1)JSP:forward  执行页面转向,将请求的处理转发到下一个页面。

    (2)JSP:param  用于传递参数,必须与其他支持参数的标签一起使用

    (3)JSP:include  用于动态引入一个JSP页面

    (4)JSP:plugin 用于下载JavaBean或者Applet到客户端执行

      (5)   JSP:useBean 创建一个Javabean实例

    (6)  JSP:setProperty  设置JavaBean实例的属性值

    (7)JSP:getProperty  获取JavaBean实例的属性值


     

     9个内置对象

    自己回忆

    正确与否

    正确答案

    1.page

    Page

    page

    Object(this)

    2.pageContext

    PageContext

    2.pageContext

    PageContext

    3.request

    HttpServletRequest

    3.request

    HttpServletRequest

    4.session  

    HttpSession

    4.session  

    HttpSession

    5.out

    printWriter

    out

    JspWriter

    6.exception

    Throwable

    6.exception

    Throwable

    7.context

    ServletContext

    application

    ServletContext

    8.

    response     

    HttpServletResponse

    9.

    config

    ServletConfig

               

    request

    HttpServletRequest

    response

    HttpServletResponse

    config

    pageConfig

    session

    HttpSession

    out

    JspWriter

    application

    ServletContext

    exception

    Throwable

    page

    Object(this)

    pageContext

    PageContext

       

  • 相关阅读:
    LeetCode Count Primes
    LeetCode Isomorphic Strings
    126. Word Ladder II
    131. Palindrome Partitioning
    146. LRU Cache
    [LintCode] 574 Build Post Office II
    297. Serialize and Deserialize Binary Tree
    133. Clone Graph
    261. Graph Valid Tree
    [LintCode] 598 Zombie in Matrix 解题报告
  • 原文地址:https://www.cnblogs.com/CESC4/p/6757421.html
Copyright © 2011-2022 走看看