posts - 19,  comments - 4,  trackbacks - 0

          Struts Nested 標簽庫 的一部分 標簽 用于表達 JavaBean 的嵌套 系, 有一部分 標簽 在特定的 級別 提供和其他 Struts 標簽庫 標簽 相同的功能。其中最主要的兩個 標簽為 "<nested:root>" "<nested:nest>"

          1.<nested:nest>:
          一個新的嵌套 級別 <nested:nest> 標簽 可以表達 JavaBean 的嵌套 系。 <html:form action="/showPerson"> < nested:nest property="person"> LastName: < nested:text property="lastName"> < /nested:nest> < /html:form > 以上的 <nested:nest> 標簽 的上 JavaBean <html:form> 單標簽對應 PersonForm Bean <nested:nest> 標簽 property 屬性 "person" , 代表 PersonForm Bean person 屬性。 person 屬性代表 Person Bean , 因此嵌套在 <nested:nest> 標簽 內部的 Nested 標簽 都相 Person Bean.

          2.<nested:root>:
          用來 示的指定 頂層級別 JavaBean <nest:root> 標簽 name 屬性指定 JavaBean 的名字。嵌套在 <nested:root> 標簽 中的 <nested:nest> 標簽 property 屬性 為這 JavaBean 的某個屬性。 <nested:root name="PersonForm"><nested:nest property="person"><nested:write property="lastName"/></nested:nest></nested:root> 以上代 中, <nested:root> 標簽 name 屬性 "PersonFrom" ,代表當前的 PersonFormBean 。 嵌套其中的 <nested:nest> 標簽 property 屬性 "person", 代表 PersonForm Bean person 屬性。

          參考文獻: 精通 Struts: 基于 MVC Java Web 設計 開發

          posted on 2007-01-09 13:09 公主她爹 閱讀(1342) 評論(0)  編輯  收藏 所屬分類: Struts

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


          網站導航:
           

          <2007年1月>
          31123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          常用鏈接

          留言簿(1)

          隨筆分類(19)

          隨筆檔案(19)

          相冊

          娛樂網站

          技術網站(Java)

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 普洱| 霍邱县| 漳浦县| 宣武区| 宣汉县| 化州市| 沙坪坝区| 班戈县| 南木林县| 白河县| 大洼县| 建湖县| 哈巴河县| 中牟县| 汨罗市| 平果县| 天门市| 平乐县| 长泰县| 西青区| 乡城县| 南通市| 健康| 思南县| 江门市| 房山区| 当阳市| 榆中县| 微山县| 额敏县| 合山市| 长治县| 六安市| 于田县| 临沭县| 西昌市| 六枝特区| 民乐县| 黄龙县| 阿巴嘎旗| 大石桥市|