• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Conditionally Exiting Logic Iterate

 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic