<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    泰仔在線

    java學習,心情日記,繽紛時刻
    posts - 100, comments - 34, trackbacks - 0, articles - 0

    關于struts中tld 文件里配置詳解

    Posted on 2007-01-13 10:17 泰仔在線 閱讀(6171) 評論(2)  編輯  收藏 所屬分類: Java 相關
    這是struts-bean.tld 中write的配置:
    <tag>
    <name>write</name>
    <tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>bundle</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>filter</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>formatKey</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>ignore</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>name</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>property</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>


    其中:
    <name>write</name>:這個Tag的名字
    <tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>:這個Tag是由那個類實現的(這個class可以在struts.jar包中找到)
    <bodycontent>empty</bodycontent>:這個Tag可以直接結尾,不需要填寫內容
       這里bodycontent有三個可選值
          jsp        標簽體由其他jsp元素組成   
             如果其有jsp元素,那么標簽會先解釋,然后將元素的實際值傳入。比如標簽體里含有<%=attributeName%>這樣子的jsp元素,此時標簽會按attributeName的實際值是什么就傳入什么。這個是最常用的一個。
          empty   標簽體必須為空   
             在引用這個Tag的時候,可以<bean:write bundle="attributeName" />,而不必<bean:write bundle="attributeName" ></bean:write> 
          tagdependent   由標簽解釋,不帶jsp轉換 
    <attribute> </attribute>這里標識的是這個Tag的一個參數
    <name>bundle</name>這個參數的名字
    <required>false</required>這個參數是否是必填相
          如果為true則必須寫這個參數,否則會報錯
    <rtexprvalue>true</rtexprvalue>是說這個標簽的值可以寫入
          rtexprvalue:"RUN-TIME EXPRESSION VALUE",是否可以動態賦值,在jsp中如value="<%=attributeName%>"

    Feedback

    # re: 關于struts中tld 文件里配置詳解  回復  更多評論   

    2008-01-21 15:43 by langchao826
    太謝謝你了!

    # re: 關于struts中tld 文件里配置詳解  回復  更多評論   

    2013-01-04 14:08 by sssssss
    不錯不錯
    主站蜘蛛池模板: 2019中文字幕免费电影在线播放| xxxxxx日本处大片免费看| 91九色视频无限观看免费| 久久青青成人亚洲精品| 免费成人在线电影| 亚洲色图在线观看| 91麻豆国产免费观看| 亚洲欧洲精品视频在线观看| 最好看的中文字幕2019免费| 久久精品国产亚洲AV大全| 免费能直接在线观看黄的视频| 亚洲欧洲精品国产区| 色妞WWW精品免费视频| 亚洲国产成人AV在线播放| 宅男666在线永久免费观看| 精品亚洲福利一区二区| 亚洲精品tv久久久久久久久久| 有色视频在线观看免费高清在线直播 | 亚洲AV永久无码天堂影院| 好男人www免费高清视频在线| 亚洲一区二区观看播放| mm1313亚洲精品无码又大又粗| 一级毛片正片免费视频手机看| 亚洲愉拍99热成人精品热久久 | 18禁美女黄网站色大片免费观看 | 性色av免费观看| 免费国产黄网站在线看| 久久99国产亚洲精品观看| 日本免费网站视频www区| 自拍偷自拍亚洲精品偷一| 在线亚洲精品自拍| 亚洲美女视频免费| 国产午夜亚洲精品不卡电影| 九月丁香婷婷亚洲综合色| 久草免费在线观看视频| 黄页网址大全免费观看12网站| 国产午夜亚洲不卡| 国产免费不卡v片在线观看| 一级中文字幕乱码免费| 麻豆亚洲av熟女国产一区二| 日本一线a视频免费观看|