各位高手好,我原来写的jsp是这样的
<logic:iterate name="currencyList" id="item" indexId="index">
<%
if (((java.util.List) request.getAttribute("currencyList")).size() - 1 > index.intValue()) {
out.write(",");
}
%>现在我想改用jstl的写法
<c:forEach items="${currencyLists}" var="currencyList">
请问<% %>里面的index我该如何处理? 谢谢各位了!
<logic:iterate name="currencyList" id="item" indexId="index">
<%
if (((java.util.List) request.getAttribute("currencyList")).size() - 1 > index.intValue()) {
out.write(",");
}
%>现在我想改用jstl的写法
<c:forEach items="${currencyLists}" var="currencyList">
请问<% %>里面的index我该如何处理? 谢谢各位了!
解决方案 »
- ExtJS 按钮重新渲染的问题
- 年份出错
- javascript:window.top.space_addItem(7,10104,0,0,0,1,0); 海底世界 这个代码是什么意思呀?
- 请问做一个Jquery做一个像淘宝新增商品分类,要怎么做呀?
- 只打开一个购物车页面,如何把东西添加到同一个购物车里,不要重复打开购物车页面(内含frame)
- 正则如何提取<b></b>之间的数据
- frame 中怎么切换其他html链接
- 请帮忙提供一个字幕滚动的javascript的源代码(不能用maquee原理),谢谢,当即兑现分值。
- 刷新页面时,通过 JavaScript 脚本如何去掉下面令人讨厌的提示窗口
- 设计一个程序,使用数组接收用户输入的7门功课的成绩,然后在页面上显示其总成绩和平均分,并列出不及格的成绩.
- 分享一个仿webqq3.0 的js云桌面源码
- 在IE中A标签链接失败问题
放在后台处理啊,当满足条件时可以session.setAttribute("sat",",");
然后前台
${sessionScope.sat}试试