Have you looked at the userguide? Did you open the struts-example?
I did not test this in a jsp, so you may need to verify....
<%
SearchResultBean[] c = (SearchResultBean[])
session.getAttribute("results");
%>
<logic:iterate id="c" name="results" scope="session">
<bean:write name="c" property="title"/>
<bean:write name="c" property="description"/>
</logic:iterate>
--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/
"The man who does not read good books has no advantage over the man who
cannot read them."
- Mark Twain (1835-1910)
> -----Original Message-----
> From: Brian Hart [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 21, 2003 2:37 PM
> To: [EMAIL PROTECTED]
> Subject: Understanding the Iterate Tag
>
>
> I have a JavaBean Array in the session scope which I can loop
> through in a scriptlet to output properties of each member of
> the array.
> Example:
> <%
> SearchResultBean[] c = (SearchResultBean[])
> session.getAttribute("results");
>
> for (int x = 0; x < c.length; x++){
> out.println(c[x].getTitle());
> out.println(c[x].getDescription());
> }
> %>
>
> What is the equivalent syntax for the above using the struts
> <logic:iterate> tag?
>
> Thank You,
> Brian
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]