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

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

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

    blog.Toby

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      130 隨筆 :: 2 文章 :: 150 評論 :: 0 Trackbacks
    Difference request.forward() and response.sendRedirect .
    Posted by: Kapil Israni on August 24, 2000 in response to Message #2253 1
    replies in this thread
    i suppose u r talking bout requestDispatcher.forward() here.

    well basically both method calls redirect u to new resource/page/servlet.

    the difference between the two is that sendRedirect always sends a header
    back to the client/browser. this header then contains the
    resource(page/servlet) which u wanted to be redirected. the browser uses
    this header to make another fresh request. thus sendRedirect has a overhead
    as to the extra remort trip being incurred. its like any other Http request
    being generated by ur browser. the advantage is that u can point to any
    resource(whether on the same domain or some other domain). for eg if
    sendRedirect was called at www.mydomain.com then it can also be used to
    redirect a call to a resource on www.theserverside.com.

    where as in case of forward() call, the above is not true. resources from
    the server, where the fwd. call was made, can only be requested for. but
    the major diff between the two is that forward just routes the request to
    the new resources which u specify in ur forward call. that means this route
    is made by the servlet engine at the server level only. no headers r sent
    to the browser which makes this very eficient. also the request and
    response objects remain the same both from where the forward call was made
    and the resource which was called.

    i hope i have hit ur question right.



    選擇自 Killvin 的 Blog
    posted on 2006-01-22 20:46 渠上月 閱讀(257) 評論(0)  編輯  收藏 所屬分類: java tips
    主站蜘蛛池模板: 亚洲中文无码av永久| 99999久久久久久亚洲| 人人狠狠综合久久亚洲婷婷| 亚洲人成网77777亚洲色| 亚洲AV日韩AV永久无码免下载| 中文字幕亚洲天堂| 久久精品亚洲中文字幕无码麻豆| 亚洲区精品久久一区二区三区| 青青视频免费在线| 国产精品区免费视频| 国产在线观看麻豆91精品免费| 天天摸天天碰成人免费视频| 四虎永久免费网站免费观看| 久久亚洲国产中v天仙www| 免费看搞黄视频网站| 日本最新免费不卡二区在线| 亚洲午夜久久久影院| 久久一本岛在免费线观看2020| 妞干网免费观看视频| 亚洲精品乱码久久久久久V| 女同免费毛片在线播放| 四虎影视大全免费入口| 视频一区二区三区免费观看| 亚洲午夜无码久久久久| 无码区日韩特区永久免费系列| 国产亚洲精品资在线| 久草免费福利资源站| 国产亚洲精品无码成人| 国产一区二区三区免费视频| 黄色视屏在线免费播放| 成人免费视频试看120秒| 亚洲乱亚洲乱淫久久| 少妇性饥渴无码A区免费 | 18禁免费无码无遮挡不卡网站| 国产成人亚洲综合网站不卡| 无码囯产精品一区二区免费 | 好爽好紧好大的免费视频国产| 一级做a爰片性色毛片免费网站| 91免费国产自产地址入| 亚洲线精品一区二区三区影音先锋 | 一本大道一卡二大卡三卡免费|