<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

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 久久国产精品亚洲综合| 一级做a爰片久久毛片免费陪 | 看免费毛片天天看| 国产片免费在线观看| 美女羞羞视频免费网站| 亚洲精品无码久久一线| 久久免费公开视频| 亚洲黄网在线观看| 妞干网手机免费视频| 国产偷国产偷亚洲高清在线| 亚洲免费中文字幕| 好大好深好猛好爽视频免费| 真实国产乱子伦精品免费| 亚洲综合激情五月色一区| 免费一级成人毛片| 成人无码WWW免费视频| 亚洲午夜电影在线观看高清| 无码专区—VA亚洲V天堂| 亚洲精品美女久久777777| 免费在线视频一区| 国产一区二区三区在线免费| 19禁啪啪无遮挡免费网站| 亚洲av永久中文无码精品综合 | h在线看免费视频网站男男| 国产亚洲精品国看不卡| 91黑丝国产线观看免费| 羞羞漫画页面免费入口欢迎你| 亚洲熟妇av午夜无码不卡 | 成人a视频片在线观看免费| 在线观看无码AV网站永久免费| 色偷偷亚洲第一综合| 亚洲蜜芽在线精品一区| 久久国产亚洲高清观看| 亚洲一区二区三区在线视频| h片在线免费观看| a级毛片高清免费视频就| 亚洲欧洲精品成人久久曰| 中文字幕亚洲第一在线| 亚洲综合久久成人69| 亚洲午夜久久久影院伊人| 日韩免费观看的一级毛片|