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

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

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

    qiyadeng

    專(zhuān)注于Java示例及教程
    posts - 84, comments - 152, trackbacks - 0, articles - 34

    SCWCD隨筆

    Posted on 2005-10-19 21:57 qiyadeng 閱讀(427) 評(píng)論(0)  編輯  收藏

    簡(jiǎn)單標(biāo)簽初始化過(guò)程:
    START tag handler instance created --> setJspContext is called --> setter for attribute is called
    --> setJspBody is called --> doTag is called
    -->END

    HttpServletResponse.sendRedirect() 之后保持session(不支持cookies)
    By enconding the redirect path with HttpServletResponse.encodeRedirectURL() method


    There are only 3: page, taglib and include.

    The HttpSessionAttributeListener interface can be implemented in order to get notifications of changes to the attribute lists of sessions within this web application.

    The HttpSessionBindingListener interface causes an object to be notified when it is bound to or unbound from a session.

    The HttpSessionListener interface notifies any changes to the list of active sessions in a web application

    The HttpSessionActivationListener interface notifies objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated.

    The ServletContextAttributeListener interface receive notifications of changes to the attribute list on the servlet context of a web application

    Java code in the scriptlet is validated during the compilation phase of the servlet life-cycle.

    During the page translation phase of a JSP page life-cycle, the JSP page is parsed and a Java file containing the corresponding servlet is created. The servlet created will contain the declared jspInit() overriding the default jspInit() method which is declared in a vendor-specific JSP page base class.

    JSP declaration tag can contain an uninitialised variable declaration.

    authentication techniques that are based on builtin mechanisms of HTTP:BASCI ,DIGEST

    The following is the sequence of things that happen when you invalidate a session:
    1. Container calls sessionDestroyed() on all HttpSessionListeners configured in web.xml (in the order they are declared in web.xml). Notice that although the method name is sessionDestroyed, the session is not destroyed yet. It is about to be destroyed.
    2. The container destroys the session.
    3. The container calls valueUnbound() on all the session attributes that implement HttpSessionBindingListner interface.

    <security-constraint>
       <web-resource-collection>
        <web-resource-name>SalesInfo
        <url-pattern>/salesinfo/*
        <http-method>GET 
                    //可以0到多個(gè),當(dāng)0個(gè)時(shí),代表外界沒(méi)有人可以用http的方法存取設(shè)限的資料(其餘方法如forward,include可被內(nèi)部程式叫用)
       
       <auth-constraint>
        <role-name>manager    
                    //可以0到多個(gè)或是設(shè)成"*",當(dāng)設(shè)成"*"時(shí)所有人都可以存取,當(dāng)設(shè)成,沒(méi)有人可以存取
       
       <user-data-constraint>
        <transport-guarantee>NONE/CONFIDENTIAL/INTEGRAL
                    //
    NONE implies HTTP;CONFIDENTIAL,INTEGRAL imply HTTPS
       

    Only the following directives are valid for tag files:
    taglib, include, tag, attribute, variable.

    The following are the implicit objects availble to EL in a JSP page:
    . pageContext - the PageContext object
    . pageScope - a Map that maps page-scoped attribute names to their values
    . requestScope - a Map that maps request-scoped attribute names to their values
    . sessionScope - a Map that maps session-scoped attribute names to their values
    . applicationScope - a Map that maps application-scoped attribute names to
    their values
    . param - a Map that maps parameter names to a single String parameter value (obtained by calling ServletRequest.getParameter(String name))
    . paramValues - a Map that maps parameter names to a String[] of all values for that parameter (obtained by calling ServletRequest.getParameterValues(String name))
    . header - a Map that maps header names to a single String header value (obtained by calling ServletRequest.getHeader(String name))
    . headerValues - a Map that maps header names to a String[] of all values for that header (obtained by calling ServletRequest.getHeaders(String))
    . cookie - a Map that maps cookie names 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, users of the cookie implicit object must be aware that the ordering of cookies is currently unspecified in the servlet specification.
    . initParam - a Map that maps context initialization parameter names to their String parameter value (obtained by calling  ServletContext.getInitParameter( String name))

    It is very important that you understand what methods of the following interfaces are invoked in which situation.
    HttpSessionActivationListener: Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. NOT configured in web.xml.
    HttpSessionAttributeListener: This listener interface can be implemented in order to get notifications of changes to the attribute lists of sessions within this web application. Configured in web.xml.
    HttpSessionBindingListener: Causes an object to be notified when it is bound to or unbound from a session. NOT configured in web.xml.
    HttpSessionListener: Implementations of this interface are notified of changes to the list of active sessions in a web application. Configured in web.xml.

    isRequestedSessionIdFromCookie method checks whether the requested session id came in as cookie

    getAuthType() method of HttpServletRequest returns name of the authenticating scheme used to protect the servlet


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 91成人免费观看网站| 亚洲AV综合色区无码另类小说| 免费国产一级特黄久久| 亚洲国产精彩中文乱码AV| eeuss影院免费92242部| 69xx免费观看视频| 日本人护士免费xxxx视频| 国产亚洲无线码一区二区| 久久久精品国产亚洲成人满18免费网站| 18成禁人视频免费网站| 亚洲高清免费在线观看| 日本亚洲免费无线码| 亚洲人成www在线播放| 国产一级片免费看| 国产成人无码区免费A∨视频网站 国产成人涩涩涩视频在线观看免费 | 久久久久亚洲AV无码去区首| 成人最新午夜免费视频| 久久久久久亚洲精品| 国产AV日韩A∨亚洲AV电影| 免费少妇a级毛片人成网| 亚洲免费观看在线视频| 一个人看的在线免费视频| 在线观看亚洲精品国产| 亚洲日韩精品无码专区| 中出五十路免费视频| 久久亚洲AV成人无码电影| 国产免费AV片在线播放唯爱网| 亚洲AV日韩AV永久无码绿巨人| 一区二区免费国产在线观看| 亚洲精品乱码久久久久久| 日韩免费精品视频| 亚洲国产日韩在线成人蜜芽| 国产精品无码一二区免费| 热99RE久久精品这里都是精品免费 | 亚洲精品国产专区91在线| 免费高清在线影片一区| 在线看片免费人成视频久网下载| 亚洲国产人成精品| 久久精品国产亚洲AV| 亚洲AV日韩AV鸥美在线观看| 免费毛片在线看片免费丝瓜视频|