You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by SATHYA <it...@gmail.com> on 2011/11/23 22:44:12 UTC
Nested Iterator tag...
Hi,
I am facing a problem in Iterating the below collection using struts taglib.
List<List<String>> outerList;
<s:iterator id="outerList" value="outerList">
<s:iterator id="innerList" value="??????">
<s:property />
</s:iterator>
</s:iterator>
please let me know what i need to mention in place of ?????
Many thanks in advance.
--
View this message in context: http://struts.1045723.n5.nabble.com/Nested-Iterator-tag-tp5018197p5018197.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Nested Iterator tag...
Posted by Steven Yang <ke...@gmail.com>.
try:
<s:iterator id="outerList" value="outerList">
<s:iterator id="innerList" value="top">
<s:property />
</s:iterator>
</s:iterator>
or
<s:iterator id="outerList" value="outerList" var="il">
<s:iterator id="innerList" value="#il">
<s:property />
</s:iterator>
</s:iterator>
or since you used "id", by the way i believe "id" is depricated
<s:iterator id="outerList" value="outerList">
<s:iterator id="innerList" value="#outerList">
<s:property />
</s:iterator>
</s:iterator>
On Thu, Nov 24, 2011 at 5:44 AM, SATHYA <it...@gmail.com> wrote:
> Hi,
>
> I am facing a problem in Iterating the below collection using struts
> taglib.
>
> List<List<String>> outerList;
>
> <s:iterator id="outerList" value="outerList">
> <s:iterator id="innerList" value="??????">
> <s:property />
> </s:iterator>
> </s:iterator>
>
>
> please let me know what i need to mention in place of ?????
>
> Many thanks in advance.
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Nested-Iterator-tag-tp5018197p5018197.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>