roy

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

          View Helper(視圖幫助)
                  視圖幫助類,將數(shù)據(jù)庫中的原數(shù)據(jù)組裝成頁面所需要的元素,作用:
                          1.處理元數(shù)據(jù);
                          2.視圖數(shù)據(jù)和業(yè)務(wù)層數(shù)據(jù)模型適配;
                          3.和業(yè)務(wù)代理模式結(jié)合進一步隱藏業(yè)務(wù)實現(xiàn);
                          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

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


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 临海市| 清苑县| 仙游县| 申扎县| 鄂伦春自治旗| 鄢陵县| 宜丰县| 资阳市| 淮安市| 重庆市| 东海县| 北碚区| 富平县| 伽师县| 翁牛特旗| 衡东县| 蓬安县| 同仁县| 镶黄旗| 瓦房店市| 福建省| 灵璧县| 亳州市| 柳河县| 阿荣旗| 顺平县| 佛坪县| 即墨市| 游戏| 噶尔县| 政和县| 仲巴县| 章丘市| 蒲城县| 安远县| 拉孜县| 磐石市| 余江县| 广宁县| 绿春县| 玛纳斯县|