aspose file tools*
The moose likes Struts and the fly likes Conditionally Exiting Logic Iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Conditionally Exiting Logic Iterate" Watch "Conditionally Exiting Logic Iterate" New topic
Author

Conditionally Exiting Logic Iterate

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
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.


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
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

Joined: Jul 09, 2007
Posts: 426
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conditionally Exiting Logic Iterate