This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes how to break logic : iterate on condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to break logic : iterate on condition" Watch "how to break logic : iterate on condition" New topic
Author

how to break logic : iterate on condition

Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
does anyone know how to break logic : iterate on condition like breaking anyother loop with break;
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Do you mean with tags? Which version of Struts? TellTheDetails.
Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
its an old application. Struts 1.1. I have a list allChannels and another list zoneChannels, whenever element from allChannel is matches with zone channels list i need to break the iteration and continue with outer list iteration


Sorry for not providing details earlier. Thanks for your help
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No clue. Could you do that logic on the server side? (That's where I'd do it anyway--easier to code and test.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to break logic : iterate on condition
 
Similar Threads
select another dropdown based on a selection from first dropdown using <html:select> struts tag
if() condition exit
logic iterate
a question on understand a java snippet
How to monitor a random trial experiment