<logic:iterate id="SearchResultBean" name="results" >
<bean:write name="SearchResultBean" property="title"/>
<bean:write name="SearchResultBean" property="description"/>
</logic:iterate>
>
> Alexandre Jaquet
> ----- Original Message -----
> From: "Brian Hart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 8:36 PM
> 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]
>
>
>
> ---------------------------------------------------------------------
> 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]