roy

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            1 隨筆 :: 5 文章 :: 0 評論 :: 0 Trackbacks

          View Helper(視圖幫助)
                  視圖幫助類,將數據庫中的原數據組裝成頁面所需要的元素,作用:
                          1.處理元數據;
                          2.視圖數據和業務層數據模型適配;
                          3.和業務代理模式結合進一步隱藏業務實現;
                          4.包含值對象。
                 視圖幫助可以是JAVABEAN,也可以是TAGS、SERVLET、JSP。
                 一個例子

          /**A servlet delegates to a command object helper, as
          shown in the following excerpt:*
          */

          String resultPage 
          = command.execute(request,
          response);
          /**The command object helper uses the business
          delegate, which is simply implemented as another
          JavaBean helper, as shown in the following excerpt:*
          */

          AccountDelegate accountDelegate 
          = new
          AccountDelegate();
          posted on 2005-09-09 10:31 風蕭蕭 閱讀(220) 評論(0)  編輯  收藏 所屬分類: J2EE Patterns

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


          網站導航:
           
          主站蜘蛛池模板: 泸水县| 台中县| 克山县| 綦江县| 金塔县| 格尔木市| 微博| 禹城市| 大方县| 和硕县| 容城县| 阿勒泰市| 龙江县| 靖安县| 当涂县| 海宁市| 牙克石市| 辉县市| 平阳县| 昔阳县| 岳普湖县| 中宁县| 淮阳县| 沁水县| 吴旗县| 瑞丽市| 九江县| 女性| 恩平市| 建湖县| 邛崃市| 二手房| 焦作市| 昌宁县| 望都县| 交口县| 苍山县| 泸州市| 石棉县| 岗巴县| 连城县|