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)

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 安阳县| 和田县| 民乐县| 霍山县| 永寿县| 友谊县| 邵阳县| 渭南市| 华宁县| 涞水县| 壶关县| 定远县| 宜春市| 宜兴市| 司法| 印江| 澄城县| 大悟县| 丰都县| 临海市| 苍南县| 万全县| 龙里县| 灵宝市| 肃南| 得荣县| 桐城市| 从江县| 余干县| 伊宁县| 习水县| 牙克石市| 措勤县| 金坛市| 枣庄市| 正安县| 延长县| 灵武市| 葵青区| 大宁县| 偏关县|