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

Conditionally Exiting Logic Iterate

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Good Day..

Is there a way for me to conditionally exit logic iterate so that the looping will stop from iterating the collection?



I need the variable so I can set the proper color from css. Thanks.
 
Dom Lassy
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't think of a way to exit a logic:iterate. I assume that you want to exit the loop for performance issues. In theory, you should be doing this logic in your action class. You should just set a form variable that tells you which background to use in your action class and leave that logic out of your jsp.
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I assume that you want to exit the loop for performance issues


I am assigning id for my CSS file. But I finally find a way doing so by just letting the loop finish its iteration. Appreciate your help in responding . Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic