Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jstl - breakig out of a loop early  RSS feed

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using JSTL and I have an outer loop and an inner loop.

After iterating through some of the values in the inner loop I may want to stop iterating through the inner loop and move to the outer loop.

How do i do this in jstl?

thank you
david
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. You can use a <c:if> to skip the rest of the output based on whatever.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about "end" attribute?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!