Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iteration EL tags

 
muthulingam Jayakanthan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the menaing of "loop status object" of a loop in the JSTL - EL.
please someone help?
 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by muthulingam Jayakanthan:
what is the menaing of "loop status object" of a loop in the JSTL - EL.
please someone help?


With <c:forEach> you could assign the loop status to a variable of tag scope through the 'varStatus' attribute. The varStatus object contains some properties which can be queried from inside the loop, like if this is the first/last iteration, or the index or count of the element being evaluated in the current iteration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic