Increment counter with loop

前端 未结 4 418
梦毁少年i
梦毁少年i 2021-01-30 08:21

This question is related to my previous question :

Jsp iterate trough object list

I want to insert counter that starts from 0 in my for loop, I\'ve tried several

4条回答
  •  鱼传尺愫
    2021-01-30 09:02

    You can use varStatus in your c:forEach loop

    In your first example you can get the counter to work properly as follows...

    
                   
            my count is ${count.count}
        
    
    

提交回复
热议问题