Nathan, Thanks for the response.
I am using HashMap and it could be handled better with <c:forEach> tag than multibox tag does. You are right. I need to set a hidden field to store the value of indexes if there is no such tag which lets me stop the loop manually in <c:forEach>. Sorry if this msg is sent twice again this time. I have unsubscribed and subscribed to the list in order to solve the problem. It did not work. I emailed the owner of the list to see if he could help me on this. Thanks, Kathy > -----Original Message----- > From: Nathan Maves [SMTP:[EMAIL PROTECTED] > Sent: Friday, May 28, 2004 1:11 PM > To: Struts Users Mailing List > Subject: Re: <c:forEach> tag > > I have not seen any way to do this. > > You could do a work around by setting a var inside of your loop then > checking that on every iteration of the loop. This is still causing > the loop to finish execution but you would get the result you were > looking for. > > You might look into the multibox tag for auto-population of checkboxes. > > Nathan > On May 28, 2004, at 9:21 AM, Kathy Zhou wrote: > > > I hope I would not send this msg twice this time. :) > > > > I have a question on <c:forEach> tag. > > > > Is there any way I could use something like <% break; %> within > > <c:forEach> > > loop? The reason I am asking is that I am using <c:if> to find a value. > > Once the value has been found, <c:forEach> loop do not have to be > > continued,. the process moves on to the next tag. I am using this on a > > group of checkboxes. It defines which checkbox has been checked after > > submitting. > > > > I checked the JSTL tag and did not find the one I could use within > > <c:forEach> tag. I may miss something here. Any ideas? > > > > Thank you. > > > > Kathy > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]