You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcelo Caldas <mc...@ccsc.com> on 2002/03/13 15:25:47 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Nested Iterates...

Posted by Louis Leung <lo...@sun.com>.
have u tried name="items.tests" ??

Marcelo Caldas wrote:

> 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:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>