【发布时间】:2013-12-10 09:20:17
【问题描述】:
在处理 jstl 标签时,我遇到了 foreach 循环:
<c:forEach items="#{data.steps}" var="item" varStatus="status">
<li><a href="" class="${status.index == '1'? 'current' : ''}">#{item}</a></li>
</c:forEach>
如何用变量替换静态“1”(status.index == '1')?应该看起来像:status.index == '1' == #{data.step}?
【问题讨论】: