草窩兒
我的地盤兒
BlogJava
首頁(yè)
新文章
新隨筆
聚合
管理
posts - 4, comments - 13, trackbacks - 0
2008年1月18日
websphere中jstl標(biāo)簽不要套著用
websphere中jstl標(biāo)簽不要套著用,特別是 <c:if>、<c:when>和 ${fn:},不然還得回頭改,嚴(yán)重浪費(fèi)時(shí)間。
記錄一下,備忘。
已經(jīng)試過N次了,以目前的版本來說,websphere還是不支持套著用,以后沒聽到新聞也可以不用再測(cè)試了!
posted @
2008-01-18 17:17
芨芨草 閱讀(444) |
評(píng)論 (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%"
>
</
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%"
>
</
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
芨芨草 閱讀(535) |
評(píng)論 (1)
|
編輯
收藏
2008年1月17日
這里發(fā)代碼好像還可以
這里發(fā)代碼好像還可以。 寫段代碼試一下,
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%"
>
</
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%"
>
</
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
芨芨草 閱讀(192) |
評(píng)論 (1)
|
編輯
收藏
僅列出標(biāo)題
想讓草兒飛上天 ...
<
2025年6月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
常用鏈接
我的隨筆
我的評(píng)論
我的參與
最新評(píng)論
留言簿
給我留言
查看公開留言
查看私人留言
隨筆分類
JAVA
JSP(2)
隨筆檔案
2008年1月 (3)
文章分類
JAVA(1)
文章檔案
2008年1月 (1)
2007年4月 (1)
Hibernate
Hibernate數(shù)據(jù)查詢
Hibernate Query Language Criteria Query方式 Native SQL查詢 命名SQL查詢
Oracle
Oracle sql 性能優(yōu)化調(diào)整(1)
搜索
最新評(píng)論
1.?離路路生日還有
2反對(duì)黨方法的
--張路玉
2.?re: 這邊再發(fā)段代碼試一下效果
好
--王曉君
3.?http://home.51.com/xianwen12366
好啊
--現(xiàn)穩(wěn)
4.?http://home.51.com/xianwen12366
我的
--現(xiàn)穩(wěn)
5.?re: 換行顯示
評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
--cvcb
閱讀排行榜
1.?換行顯示(535)
2.?websphere中jstl標(biāo)簽不要套著用(444)
3.?這里發(fā)代碼好像還可以(192)
評(píng)論排行榜
1.?換行顯示(1)
2.?這里發(fā)代碼好像還可以(1)
3.?websphere中jstl標(biāo)簽不要套著用(0)
Copyright ©2025 芨芨草 Powered By
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
孟州市
|
岳阳市
|
项城市
|
遂川县
|
博野县
|
临城县
|
汝城县
|
河曲县
|
玉门市
|
安义县
|
合阳县
|
岳普湖县
|
怀柔区
|
万安县
|
邹平县
|
苍梧县
|
井研县
|
桃园市
|
辽源市
|
七台河市
|
林西县
|
瑞丽市
|
永平县
|
东丰县
|
永定县
|
额敏县
|
镇远县
|
崇义县
|
施秉县
|
阿拉善右旗
|
桦南县
|
福贡县
|
朝阳县
|
丘北县
|
临夏县
|
朝阳区
|
奈曼旗
|
大洼县
|
枞阳县
|
东台市
|
将乐县
|