Win a copy of Murach's Python Programming this week in the Jython/Python 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: 36432
454
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!