Ted,
In this example (I'm still having problems using the iterate tag), how does
the "row" get put into a context? Where is that bean? According to the tag
docs, id is "The name of a page scope JSP bean that will contain the current
element of the collection on each iteration."
Thanks,
Dennis
-----Original Message-----
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 8:09 AM
To: Struts List
Subject: Re: Newbie Question on Logic:Iterate Tag
Basically, iterate will run through a collection object that you've
stored in one of the contexts (page, request, session, or application),
using a call like request.SetAttribute("myObj", myObj); You can then do
something like
<logic:iterate id="row" name="myObj">
<li><bean:write name="row" property="myProperty"/></li>
</logic:iterate>
in your JSP. (Assuming that myObj is an array, hashtable, et cetera.)