This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL loop  RSS feed

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

Just wonder if anyone could help with a quick fix I need to put together?

I need to basically do somethign like this:



But using jstl tags
So if have the foor loop


But am not sure about the if statement & counter
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37242
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this post for the counter. You can use c:if with that counter.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A bit of extra about the varStatus. Its type is javax.servlet.jsp.jstl.core.LoopTagStatus. Check its API to know what kind of variables are available. The JSTL specification has also more details about it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!