Though unconventional but should work:

        <%
          String itemTestValue= "items[" + index + "].tests[" + index2 +
"].value";
        %>

        <html:radio name="accountForm" property="<%=itemTestValue%>"/>

-----Original Message-----
From: Marcelo Caldas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 9:26 AM
To: Struts Mailing List
Subject: Nested Iterates...


Hi guys,

I have a <logic:iterate> inside a <logic:iterate> tag in the following
manner:

<logic:iterate id="items" ...>
        <logic:iterate id="tests" ...>
                <html:radio name="tests" property="value" indexed="true"/>
...


The problem is that the HTML being generated is like

<input type="radio" name="tests[0].value">

when actually I want to group them as items as well, like:

<input type="radio" name="items[0].tests[0].value">

Anyone knows how to have such output?

thanks,
Marcelo.

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to