<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    J2EE社區

    茍有恒,何必三更起五更眠;
    最無益,只怕一日曝十日寒.
    posts - 241, comments - 318, trackbacks - 0, articles - 16

    JSP的內置(隱含)對象及EL表達式的內置(隱含)對象

    Posted on 2010-07-24 12:40 xcp 閱讀(2352) 評論(0)  編輯  收藏 所屬分類: JAVA
               JSP中的內置對象一共有九個, 由于有的不太常用, 所以總是記不住, 從Sun公司的網站上找到的PDF文檔, 把這一部分放在這里, 以備隨時查用: 
       
      
            
    Implicit Objects for Scriptlets
    (JSP Scriplets中的隱含對象)
    Type
    (對應類型)
    Scope
    (范圍)
     Some Useful Methods (see class or interface for others)
    (常用的方法)
    1 request Subclass of javax.servlet.ServletRequest Request getAttribute, getParameter, getParameterNames, getParameterValues, setAttribute
    2 response Subclass of javax.servlet.ServletResponse Page Not typically used by JSP page authors
    3 pageContext javax.servlet.jsp.PageContext Page findAttribute, getAttribute, getAttributesScope, getAttributeNamesInScope, setAttribute
    4 session javax.servlet.http.HttpSession Session getAttribute, getId, setAttribute
    5 application javax.servlet.ServletContext Application getAttribute, getMimeType, getRealPath, setAttribute
    6 out javax.servlet.jsp.JspWriter Page clear, clearBuffer, flush, getBufferSize, getRemaining
    7 config javax.servlet.ServletConfig Page getInitParameter, getInitParameterNames
    8 page java.lang.Object Page Not typically used by JSP page authors
    9 exception java.lang.Throwable Page getMessage, getLocalizedMessage, printStackTrace, toString
       
        
    JSP十一個用于EL表達式的隱含(內置)對象:
    Implicit Objects for EL
    Expressions
    用于EL表達式的隱含對象
    Type
    類型
    Description
    具體說明
    pageContext javax.servlet.jsp.PageContext The context for the JSP page. Provides access to various objects, including servletContext, session, request, and response.
    pageScope java.util.Map Maps page-scoped variable names to their values.
    requestScope java.util.Map Maps request-scoped variable names to their values.
    sessionScope java.util.Map Maps session-scoped variable names to their values.
    applicationScope java.util.Map Maps application-scoped variable names to their values.
    param java.util.Map Maps a request parameter to a single String parameter value (obtained by calling ServletReqwuest.getParameter(String name)).
    paramValues java.util.Map Maps a request parameter name to an array of String values for that parameter name (obtained by calling ServletRequest.getParameterValues(String name)).
    header java.util.Map Maps a request header name to a single String header value (obtained by calling ServletRequest.getHeader(String name)).
    headerValues java.util.Map Maps a request header name to an array of String values for that header (obtained by calling ServletRequest.getHeaders(String)).
    coookie java.util.Map Maps a cookie name to a single Cookie object. Cookies are retrieved according to the semantics of HttpServletRequest.getCookies(). If the same name is shared by multiple cookies, an implementation must use the first one encountered in the array of Cookie objects returned by the getCookies() method. However, the ordering of cookies is currently unsspecified in the Servlet specification.
    initParam java.util.Map Maps a context initialization parameter name to a String parameter value (obtained by calling ServletContext.getInitparameter(String name)).



    名稱: ?4C.ESL | .↗Evon
    口號: 遇到新問題?先要尋找一個方案乄而不是創造一個方案こ
    mail: 聯系我


    主站蜘蛛池模板: 相泽亚洲一区中文字幕| 伊人久久综在合线亚洲2019| 国产午夜无码精品免费看动漫| 亚洲精品高清久久| 最新中文字幕免费视频| 国产精品免费在线播放| 亚洲国产精品网站久久| 亚洲AV伊人久久青青草原| 久久爰www免费人成| 亚洲AV色无码乱码在线观看| 国产∨亚洲V天堂无码久久久| 永久免费av无码网站韩国毛片| 一级一级毛片免费播放| 亚洲综合色7777情网站777| 精品国产香蕉伊思人在线在线亚洲一区二区| 最近中文字幕mv免费高清视频8| 老牛精品亚洲成av人片| 日韩亚洲AV无码一区二区不卡| 日韩免费观看一级毛片看看| 99爱在线观看免费完整版| 污网站免费在线观看| 亚洲中文字幕久久精品无码2021| 久久久久亚洲av成人无码电影 | 免费一本色道久久一区| 中国国产高清免费av片| 亚洲国产精品日韩av不卡在线| 亚洲va在线va天堂va不卡下载| 婷婷亚洲天堂影院| 成人免费a级毛片| 毛片无码免费无码播放| 成人午夜免费视频| 久久永久免费人妻精品| 免费国产草莓视频在线观看黄| 亚洲宅男精品一区在线观看| 久久久久亚洲AV无码专区首| 亚洲国产精品激情在线观看 | 自拍偷自拍亚洲精品被多人伦好爽| 成年美女黄网站18禁免费| 91香蕉在线观看免费高清| 全黄大全大色全免费大片| 日韩在线一区二区三区免费视频 |