<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
    不錯不錯
    主站蜘蛛池模板: 91成人免费观看网站| 丝袜捆绑调教视频免费区| 免免费国产AAAAA片| 亚洲国产成人在线视频| 国产成人精品免费视频网页大全| 91精品国产亚洲爽啪在线影院 | 国产成人精品免费视频软件| 色婷婷六月亚洲综合香蕉| 国产三级电影免费观看| 丁香六月婷婷精品免费观看| 国产亚洲成人久久| 国产成人AV免费观看| 亚洲福利在线视频| 日本免费xxxx| 亚洲丝袜中文字幕| 国产免费无遮挡精品视频| 国产黄在线观看免费观看不卡 | 亚洲中文字幕久久精品无码2021 | 免费h成人黄漫画嘿咻破解版| 深夜免费在线视频| 亚洲av永久无码精品秋霞电影影院 | 国产精品99精品久久免费| 亚洲黄色在线观看视频| 四虎www免费人成| 一日本道a高清免费播放| 亚洲国产精品lv| 成人毛片免费视频| 丝袜捆绑调教视频免费区| 亚洲av无码久久忘忧草| 最新欧洲大片免费在线| 中美日韩在线网免费毛片视频 | 中文在线观看免费网站| 亚洲精品视频专区| 国产成人3p视频免费观看| 无码日韩精品一区二区免费暖暖 | 免费看男女下面日出水来| 国产成人亚洲精品91专区高清| 日本亚洲成高清一区二区三区| 国产1024精品视频专区免费| 国产免费人成视频尤勿视频| 亚洲一区免费在线观看|