<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 芨芨草 閱讀(439) | 評論 (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 芨芨草 閱讀(530) | 評論 (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 芨芨草 閱讀(188) | 評論 (1)編輯 收藏
    僅列出標題  
    想讓草兒飛上天 ...

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

    常用鏈接

    留言簿

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    Hibernate

    Oracle

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲第一网站免费视频| 免费无遮挡无遮羞在线看| 亚洲小说区图片区| 亚洲精品自在线拍| 亚洲综合激情视频| 亚洲免费在线视频观看| 亚洲一区二区三区免费在线观看| 中文字幕亚洲免费无线观看日本| 91精品国产亚洲爽啪在线观看| 亚洲黄网站wwwwww| 亚洲AV无码乱码在线观看代蜜桃| 国产成人精品日本亚洲网址| 亚洲欧洲av综合色无码| 国产精品亚洲lv粉色| 免费国产高清毛不卡片基地| 国产成人高清精品免费观看| 99免费在线视频| 日本在线看片免费人成视频1000| 3d动漫精品啪啪一区二区免费| 成人免费大片免费观看网站| 最近2019中文字幕免费看最新| 全免费A级毛片免费看网站| 全部免费a级毛片| 国产av无码专区亚洲av果冻传媒 | 无码人妻一区二区三区免费视频| 成年网站免费入口在线观看| 中文字幕乱码系列免费| 久久国产高潮流白浆免费观看| 成人免费的性色视频| 免费v片在线观看无遮挡| 亚洲精品乱码久久久久久按摩| 97亚洲熟妇自偷自拍另类图片 | 亚洲高清无码综合性爱视频| 久久精品国产亚洲一区二区| 亚洲精彩视频在线观看| 亚洲AV无码男人的天堂| 久久久免费观成人影院| 2015日韩永久免费视频播放 | 1000部免费啪啪十八未年禁止观看| 大地资源二在线观看免费高清| 五月婷婷亚洲综合|