Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp c:forEach counter ?

 
Javoso Torso
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Has forEach a counter (iterator) implemented, to know in which loop number you are?
So you could do a certain action at a certain loop number?

thanks!
 
Matt Raible
author
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
varStatus is what you're looking for. Here's an article on it.
 
Javoso Torso
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right Matt, that was it was I was looking for

Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic