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

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

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

    posts - 48, comments - 13, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    Tapestry5ObtainingHttpServletRequest

    Tapestry encapsulates the HTTP servlet request, response and session, and you should not normally need to access them directly. However, sometimes it is necessary. For example, Acegi Security stores exception messages in the HttpSession.

    The underlying HTTP servlet mechanics are available via the [WWW] RequestGlobals service.

    Example

        @Inject
    private RequestGlobals requestGlobals;
    public void onActivate(Object context) {
    HttpSession session = requestGlobals.getHTTPServletRequest().getSession();
    ...
    }
    

    /!\ You need the servlet-api.jar in your classpath (dependency not included with tapestry quickstart).

    Alternatively, you can inject the HttpServletRequest directly (at least in 5.0.13):

        @Inject
    private HttpServletRequest _request;
    

    RequestGlobals is not accessible inside of AppModule.





    Copy From : http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 美女被暴羞羞免费视频| 美女视频黄频a免费观看| eeuss免费影院| 国产一级片免费看| 野花高清在线观看免费3中文| 18成禁人视频免费网站| 在线a毛片免费视频观看| 久久精品国产精品亚洲人人| 国产AV无码专区亚洲AVJULIA | 亚洲精品无码不卡在线播放HE| 亚洲A∨无码无在线观看| jizzjizz亚洲日本少妇| 日韩精品无码免费专区午夜不卡| 最近免费中文字幕视频高清在线看| 亚洲国产三级在线观看| 免费黄网站在线看| 久久丫精品国产亚洲av| aaa毛片免费观看| 成年美女黄网站18禁免费| 亚洲专区一路线二| 国产在线观看免费视频软件| 亚洲一区二区三区在线观看精品中文| 亚洲国产无线乱码在线观看| 国产成人久久AV免费| 中文字幕亚洲日本岛国片| 免费人成在线观看网站| 亚洲福利一区二区精品秒拍| 成人妇女免费播放久久久| 免费一级毛片清高播放| 亚洲熟妇丰满xxxxx| 无码免费午夜福利片在线 | 国产大片线上免费看| 亚洲av永久无码精品天堂久久| 午夜一级毛片免费视频| 亚洲精品天堂在线观看| av无码免费一区二区三区| 亚洲精品中文字幕麻豆| 国产精品黄页在线播放免费| CAOPORN国产精品免费视频| 亚洲精品视频在线播放| 四虎在线播放免费永久视频|