I want to use the count from the JSTL forEach loop, but my code doesnt seem to work.
The variable set by varStatus is a LoopTagStatus object, not an int. Use:
varStatus
To clarify: ${theCount.index} starts counting at 0 unless you've set the begin attribute ${theCount.count} starts counting at 1 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
To clarify:
${theCount.index}
0
begin
${theCount.count}
1