my dog learned polymorphism
The moose likes Struts and the fly likes jsp c:forEach counter ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp c:forEach counter ?" Watch "jsp c:forEach counter ?" New topic

jsp c:forEach counter ?

Javoso Torso
Ranch Hand

Joined: Aug 15, 2003
Posts: 88

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?


I hate 'trial and error'<br />and I am doing it all the time
Matt Raible
Ranch Hand

Joined: Jan 11, 2001
Posts: 114
varStatus is what you're looking for. Here's an article on it.

Matt<br /> <br />Author: <a href="" target="_blank" rel="nofollow">Spring Live</a> and <a href="" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="" target="_blank" rel="nofollow">Raible Designs</a> <a href="" target="_blank" rel="nofollow">Spring Live Blog</a>
Javoso Torso
Ranch Hand

Joined: Aug 15, 2003
Posts: 88
You are right Matt, that was it was I was looking for

Thank you!
I agree. Here's the link:
subject: jsp c:forEach counter ?
It's not a secret anymore!