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

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

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

    隨筆-204  評(píng)論-90  文章-8  trackbacks-0
    Logic Tags

    語(yǔ)法應(yīng)用是 --
    <someComparisonTag value="someUserNameValue" cookie="userName"> (cookie specifies the name of the cookie to compare with value)
    <someComparisonTag value="en_US" header="Accept-Language"> (header specifies the name of the HTTP header to compare with value)
    <someComparisonTag value="someUserNameValue" parameter="username"> (parameter specifies the name of the request parameter to compare with value)

    <someComparisonTag name="testBean" property="propNameInTestBean" value="someValue"> (典型)
    name指定了bean的名字而property指定了該bean的某個(gè)property以便于與value比較, 通常我們還可以加一個(gè)scope來(lái)限制bean
    property is used in conjunction with name to specify a property in the bean specified by name. The property reference can be simple, nested, and/or indexed. For the type of syntax used for property, see the users guide on the Bean Tags.
    scope specifies the bean scope which can be page, request, session, application, "any scope" (default)

    1) 值比較 Value Comparison: equal, notEqual, greaterEqual, lessEqual, lessThan, greaterThan
    比較邏輯是 -- 先試圖convert成long double,并比較; 如果parse失敗就會(huì)用String.equalTo()來(lái)比較

    1) 值比較 Value Comparison: present, notPresent, empty, notEmpty
    present看的是某變量/實(shí)例是否存在于某個(gè)限定范圍,empty看的是該實(shí)例是否為null, "", or collection.isEmpty()==true (only for collection)

    2) 子字符串匹配 Substring Matching: match, notMatch
    match/notMatch 還有一個(gè)可選location來(lái)指定該substring必須出現(xiàn)在字符串開(kāi)始還是結(jié)尾 (location="start/end")

    3) Presentation Location: forward, redirect
    用法尚不清楚

    4) Collection Utilities: iterate (極常用)
    <logic:iterate id="searchResultList" name="<%=WebKeys.SEARCH_RESULT_LIST_TWO%>" scope="session">
    <bean:write name="searchResultList" property="itemName"/></a>
    <bean:write name="searchResultList" property="itemUnitOfMeasure" />
    <bean:write name="searchResultList" property="inventoryDetailSize" format="#0.00"/>
    </logic:iterate>
    如果property給定,name代表了一個(gè)bean的實(shí)例,而這個(gè)bean的getThatProperty()將返回此tag需要的collection實(shí)例,
    如果沒(méi)有給定property, name本身就指定了將被iterate的collection的實(shí)例,
    id給出了每一次循環(huán)的collection的當(dāng)前object的名字,用于在內(nèi)部使用
    offset和length指定了從collection的哪個(gè)位置開(kāi)始,到哪里結(jié)束,其他請(qǐng)參見(jiàn)Struts Documentation,這里不詳述
    posted on 2006-02-23 16:37 一凡 閱讀(286) 評(píng)論(0)  編輯  收藏 所屬分類: JAVA FRAMEWORK

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


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: a色毛片免费视频| 欧美大尺寸SUV免费| 7x7x7x免费在线观看| 成人免费毛片观看| 亚洲日韩中文字幕一区| 色婷婷7777免费视频在线观看| 免费国产高清视频| 欧洲美女大片免费播放器视频| 亚洲成年看片在线观看| 亚洲美女视频一区| 99久久人妻精品免费二区| 亚洲视频在线免费播放| 亚色九九九全国免费视频| 亚洲产国偷V产偷V自拍色戒| 久久青草精品38国产免费| 亚洲精品国产va在线观看蜜芽| 亚洲人成网站看在线播放| a级精品九九九大片免费看| 亚洲AV一宅男色影视| 午夜老司机永久免费看片| 国产av无码专区亚洲av果冻传媒 | 中文亚洲AV片不卡在线观看| 国内永久免费crm系统z在线| 日韩亚洲Av人人夜夜澡人人爽| 免免费国产AAAAA片| 精品久久久久久亚洲综合网| 77777亚洲午夜久久多人| 久久99精品国产免费观看| 亚洲精品综合在线影院| 中文字幕在线免费观看| 亚洲大成色www永久网址| 亚洲乱码中文字幕手机在线| 国产一级片免费看| 中文字幕亚洲精品无码| 亚洲男人在线无码视频| aⅴ在线免费观看| 免费无码国产V片在线观看| 亚洲精品国产成人中文| 黄色网址免费观看| 美女被吸屁股免费网站| 亚洲经典在线观看|