<logic:iterate id="productLines" name="colName">
Next element is <bean:write name="productLines" property="blah"/>
</logic:iterate>
Doesn't matter what scope you put it in.
-Tim
-----Original Message-----
From: Matt E [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 11:23 AM
To: Struts Users Mailing List
Subject: RE: logic:iterate problems
Hello!
Changed the code to read:
<%
Collection c = ...getProductLines();
Iterator it = c.iterator();
out.print(it);
pageContext.setAttribute("colName",c);
%>
However it still fails with the same problem.
Cheers.
--- Valery Jacot <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Try to put your collection in the pageContext and
> not in the request...
>
> Strut's tags works a lot with the pageContext...
>
>
> -----Original Message-----
> From: Matt E [mailto:[EMAIL PROTECTED]
> Sent: mardi, 17. juin 2003 17:09
> To: Struts Users Mailing List
> Subject: Re: logic:iterate problems
>
>
> > <%
> > Collection c = ...getProductLines();
> > Iterator it = c.iterator();
> > out.print(it);
> > %>
>
> This worked as expected. It wrote:
> [EMAIL PROTECTED] to the HTML, which
> leads me to belive that the collection is returning
> an
> iterator.
>
> I then tried this (after deleting the above):
>
> <%
> Collection c = ...getProductLines();
> request.setAttribute("colName",c);
> %>
>
> <logic:iterate id="productLines"
> collection="colName">
> Is this working?
> </logic:iterate>
>
> However, when I introduce the logic iterate tag, I
> get
> the same "Cannot create iterator for this
> collection"
> error.
>
> I'd really like to not have to drop back to coding
> Java to do the Iteration, since the taglib seems
> cleaner to me.
>
> Any ideas what to try?
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
****************************************************************************
*******
>
> This email and any files transmitted with it are
> confidential and
> intended solely for the use of the individual or
> entity to whom they
> are addressed. If you have received this email in
> error please notify
> the system manager to [EMAIL PROTECTED]
>
>
****************************************************************************
*******
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]