You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Philippe Hodapp / 1genia <ph...@1genia.com> on 2002/02/01 15:56:12 UTC

nested iterate

I have some problems to use an iterate tag in an iterate tag.
I have tried to use the define tag but it don't work too.
I have the message : Cannot create iterator for this collection

Here's the code :
<logic:iterate id="aLaUneItem" name="aLaUne"  property="articles"
scope="session" >
            <A HREF="detail.do?idArticle=<bean:write  name="aLaUneItem"
property="noArticle" />">
   <bean:write name="aLaUneItem" property="titre" /></A>
   <bean:write name="aLaUneItem" property="resume" />
            <bean:define id="article"  name="aLaUneItem"/>
   <logic:iterate id="pictureItem" name="article"
property="picturesContainer">
   <img src="<bean:write name="pictureItem" property="idArt"/>
   </logic:iterate>

    </logic:iterate>


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


Re: nested iterate

Posted by Arron Bates <ar...@pacific.net.au>.
Tried the <nested:iterate> tag and the rest of the nested library?

It comes in the nightly build, or you can get it separately here (along 
with tutorial and such on how to use it)...
http://www.keyboardmonkey.com/struts


Arron.



Philippe Hodapp / 1genia wrote:

>I have some problems to use an iterate tag in an iterate tag.
>I have tried to use the define tag but it don't work too.
>I have the message : Cannot create iterator for this collection
>
>Here's the code :
><logic:iterate id="aLaUneItem" name="aLaUne"  property="articles"
>scope="session" >
>            <A HREF="detail.do?idArticle=<bean:write  name="aLaUneItem"
>property="noArticle" />">
>   <bean:write name="aLaUneItem" property="titre" /></A>
>   <bean:write name="aLaUneItem" property="resume" />
>            <bean:define id="article"  name="aLaUneItem"/>
>   <logic:iterate id="pictureItem" name="article"
>property="picturesContainer">
>   <img src="<bean:write name="pictureItem" property="idArt"/>
>   </logic:iterate>
>
>    </logic:iterate>
>
>
>--
>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>


RE: nested iterate

Posted by srinivas <sv...@intensit.de>.
try using nested tags

example and code available at
http://www.keyboardmonkey.com/struts

<nested:iterate property="articles">
 <nested:iterate property="picturesContainer">
 </nested:iterate>
</nested:iterate>

-----Original Message-----
From: Philippe Hodapp / 1genia [mailto:phodapp@1genia.com]
Sent: Friday, February 01, 2002 4:56 PM
To: Struts Users Mailing List
Subject: nested iterate


I have some problems to use an iterate tag in an iterate tag.
I have tried to use the define tag but it don't work too.
I have the message : Cannot create iterator for this collection

Here's the code :
<logic:iterate id="aLaUneItem" name="aLaUne"  property="articles"
scope="session" >
            <A HREF="detail.do?idArticle=<bean:write  name="aLaUneItem"
property="noArticle" />">
   <bean:write name="aLaUneItem" property="titre" /></A>
   <bean:write name="aLaUneItem" property="resume" />
            <bean:define id="article"  name="aLaUneItem"/>
   <logic:iterate id="pictureItem" name="article"
property="picturesContainer">
   <img src="<bean:write name="pictureItem" property="idArt"/>
   </logic:iterate>

    </logic:iterate>


--
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>