草窩兒
我的地盤兒
BlogJava
首頁
新文章
新隨筆
聚合
管理
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)時間。
記錄一下,備忘。
已經(jīng)試過N次了,以目前的版本來說,websphere還是不支持套著用,以后沒聽到新聞也可以不用再測試了!
posted @
2008-01-18 17:17
芨芨草 閱讀(444) |
評論 (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
芨芨草 閱讀(534) |
評論 (1)
|
編輯
收藏
想讓草兒飛上天 ...
<
2008年1月
>
日
一
二
三
四
五
六
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
31
1
2
3
4
5
6
7
8
9
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
給我留言
查看公開留言
查看私人留言
隨筆分類
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)
搜索
最新評論
1.?離路路生日還有
2反對黨方法的
--張路玉
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: 換行顯示
評論內(nèi)容較長,點(diǎn)擊標(biāo)題查看
--cvcb
閱讀排行榜
1.?換行顯示(534)
2.?websphere中jstl標(biāo)簽不要套著用(444)
3.?這里發(fā)代碼好像還可以(192)
評論排行榜
1.?換行顯示(1)
2.?這里發(fā)代碼好像還可以(1)
3.?websphere中jstl標(biāo)簽不要套著用(0)
Copyright ©2025 芨芨草 Powered By
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
天祝
|
西盟
|
乐都县
|
黎城县
|
乌兰浩特市
|
蚌埠市
|
岑巩县
|
禹城市
|
富民县
|
武定县
|
朔州市
|
长白
|
海安县
|
新泰市
|
竹山县
|
永宁县
|
怀柔区
|
彩票
|
平山县
|
江北区
|
岗巴县
|
崇左市
|
唐河县
|
罗源县
|
武安市
|
增城市
|
肥西县
|
青河县
|
洱源县
|
阿拉善盟
|
景泰县
|
永兴县
|
苗栗市
|
建德市
|
鹤庆县
|
华阴市
|
衡水市
|
陵川县
|
克东县
|
三明市
|
甘南县
|