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

          Struts學習筆記(1)----概念Overview

          Posted on 2007-10-27 17:25 oahiq.Max 閱讀(219) 評論(0)  編輯  收藏 所屬分類: Java

                 Struts applications are hosted by a web container and can make use of services provided
          by the container, like handling requests via the HTTP and HTTPS protocol. This frees
          developers up to focus on building applications that solve a business problem.

          1、什么是Container?
              In general, containers provide a hosting environment for software components to run in.When using the services provided by a container, component developers may have to give up some control of the environment to the container, in trade for important services that the developers don’t have to worry about building.
          2、Redirect和Forward之間的區別
              A.Redirect等于客戶端向服務器發出兩次request,同時也接受到兩次response
                
                 Forward卻只是一次request一次response
                   
                 相比之下,Forward性能更高。
              B.Forward能夠存儲requestScope的Att而Redirect卻不行。
              C.Forward的同時URL并不會變。
              D.Forward需要在Servlet中需要通過一個Dispatcher來實現。
              E.Redirect能夠防止某些情況下客戶端Refresh造成的一些未知后果。

          主站蜘蛛池模板: 澄城县| 阳高县| 漳平市| 新兴县| 漳浦县| 平安县| 嘉义县| 繁峙县| 宁武县| 新源县| 任丘市| 博客| 普安县| 揭阳市| 东明县| 新营市| 荣昌县| 德惠市| 石泉县| 天长市| 哈密市| 海盐县| 清新县| 红河县| 靖宇县| 上高县| 屯昌县| 雷山县| 台中市| 琼中| 棋牌| 玛多县| 阿图什市| 武邑县| 蓬莱市| 新余市| 抚远县| 历史| 丘北县| 进贤县| 城市|