Kalyan, Each loop needs to expose their iteration under a different bean name. This is not any different than standard programming loops. Also, I recommend you just JSTL:forEach which is a preferred looping method.
<c:forEach var="item" items="${myform.map.items}" varStatus="i"> <c:forEach var="item2" items="${myform.map.items2}" varStatus="j"> ${i},${j} </c:forEach> </c:forEach> Thanks, Paul -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 11:39 AM To: Struts Users Mailing List Subject: Re: how to get the index of the outer loop From: "Kalyan Ayyagari" <[EMAIL PROTECTED]> > I have a nested loop using nested:iterate. Inside the inner loop I have a > radio button. I want to group the radio buttons based on the index of the > outer loop. How can I do it? http://struts.apache.org/userGuide/struts-logic.html#iterate You can expose the current index by using the 'indexId' attribute, but I'm not sure how to use that index in the 'classic' tags without expressions. I would do this with JSTL and <c:forEach> using the varStatus attribute. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ------------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]