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

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

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

    草窩兒
    我的地盤兒
    posts - 4,  comments - 13,  trackbacks - 0
        websphere中jstl標簽不要套著用,特別是 <c:if>、<c:when>和 ${fn:},不然還得回頭改,嚴重浪費時間。
        記錄一下,備忘。
        已經試過N次了,以目前的版本來說,websphere還是不支持套著用,以后沒聽到新聞也可以不用再測試了!
    posted @ 2008-01-18 17:17 芨芨草 閱讀(438) | 評論 (0)編輯 收藏
    list傳值,每4列換行顯示,代碼如下:
     1<div id="orgsDiv">
     2    <c:set var="j" value="0" />
     3    <c:set var="type" value="" />
     4    <c:forEach items="${orgs}" var="org" varStatus="i">
     5        <c:if test="${type != org.type && i.index!=0}">
     6            <c:forEach begin="${j%4}" end="3">
     7                    <td width="25%">&nbsp;</td>
     8            </c:forEach>
     9            </tr>
    10            </table>
    11            <hr width="100%" style="border: 1px solid #cadae8; height: 1px">
    12        </c:if>
    13        <c:if test="${type != org.type }">
    14            <c:set var="j" value="0" />
    15            <table border="0" width="100%" cellpadding="0" cellspacing="0">
    16        </c:if>
    17        <c:if test="${j%4 == 0}">
    18            <tr>
    19        </c:if>
    20        <td width="25%">
    21            <html:multibox property="orgIds">${org.id}</html:multibox>
    22            <c:out value="${org.shortName}" />
    23        </td>
    24        <c:if test="${(i.last) || (j%4 == 3)}">
    25            <c:if test="${i.last}">
    26                <c:forEach begin="${i.index%4}" end="2">
    27                    <td width="25%">&nbsp;</td>
    28                </c:forEach>
    29            </c:if>
    30            </tr>
    31            <c:if test="${i.last}">                            
    32                </table>
    33            </c:if>    
    34        </c:if>
    35        <c:set var="j" value="${j+1}" />
    36        <c:set var="type" value="${org.type}" />
    37    </c:forEach>
    38</div>
    posted @ 2008-01-18 16:44 芨芨草 閱讀(528) | 評論 (1)編輯 收藏
    這里發代碼好像還可以。 寫段代碼試一下,
     1<div id="orgsDiv">
     2    <c:set var="j" value="0" />
     3    <c:set var="type" value="" />
     4    <c:forEach items="${orgs}" var="org" varStatus="i">
     5        <c:if test="${type != org.type && i.index!=0}">
     6            <c:forEach begin="${j%4}" end="3">
     7                    <td width="25%">&nbsp;</td>
     8            </c:forEach>
     9            </tr>
    10            </table>
    11            <hr width="100%" style="border: 1px solid #cadae8; height: 1px">
    12        </c:if>
    13        <c:if test="${type != org.type }">
    14            <c:set var="j" value="0" />
    15            <table border="0" width="100%" cellpadding="0" cellspacing="0">
    16        </c:if>
    17        <c:if test="${j%4 == 0}">
    18            <tr>
    19        </c:if>
    20        <td width="25%">
    21            <html:multibox property="orgIds">${org.id}</html:multibox>
    22            <c:out value="${org.shortName}" />
    23        </td>
    24        <c:if test="${(i.last) || (j%4 == 3)}">
    25            <c:if test="${i.last}">
    26                <c:forEach begin="${i.index%4}" end="2">
    27                    <td width="25%">&nbsp;</td>
    28                </c:forEach>
    29            </c:if>
    30            </tr>
    31            <c:if test="${i.last}">                            
    32                </table>
    33            </c:if>    
    34        </c:if>
    35        <c:set var="j" value="${j+1}" />
    36        <c:set var="type" value="${org.type}" />
    37    </c:forEach>
    38</div>
    posted @ 2008-01-17 10:29 芨芨草 閱讀(186) | 評論 (1)編輯 收藏
    僅列出標題  
    想讓草兒飛上天 ...

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    Hibernate

    Oracle

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 精品亚洲永久免费精品| 一进一出60分钟免费视频| 伊人亚洲综合青草青草久热| 久久亚洲私人国产精品vA| a在线视频免费观看| 女性自慰aⅴ片高清免费| 国产乱子伦精品免费无码专区| 亚洲自偷自偷在线成人网站传媒| 一区二区三区免费看| 亚洲精品视频免费观看| 亚洲AV色吊丝无码| 成年在线观看免费人视频草莓| 亚洲午夜激情视频| 久久www免费人成精品香蕉| 毛片免费全部免费观看| 亚洲色大18成人网站WWW在线播放| 成人五级毛片免费播放| 欧洲亚洲综合一区二区三区| 亚洲国产综合人成综合网站| 国产一级黄片儿免费看| 精品亚洲麻豆1区2区3区| 香蕉97超级碰碰碰免费公| 亚洲福利视频一区| 24小时在线免费视频| 亚洲欧美日韩综合久久久久| 亚洲第一区精品日韩在线播放| 国产JIZZ中国JIZZ免费看| 免费无码一区二区三区蜜桃大| 久久精品国产亚洲香蕉| 牛牛在线精品观看免费正| 亚洲精品无码午夜福利中文字幕| 亚洲国产精品免费在线观看| 亚洲精品无码专区在线| 久久亚洲欧洲国产综合| 114级毛片免费观看| 特级aa**毛片免费观看| 亚洲成a人片77777kkkk| 成人免费视频88| 中文字幕免费在线视频| 亚洲最大福利视频| 亚洲精品无码成人AAA片|