You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <ne...@husted.com> on 2000/12/23 03:33:36 UTC
Re: -
I'm using a recent build, and you may be on 0.5 so some details may
differ. (If you don't need to run under Java 1.1, you may want to move
over to a current build.)
The iterate tag in registeration.jsp of the Example application uses
these three paramaters
id - The name of the scripting variable to be exposed.
name - The name of the collection or owning bean.
property - The property name containing the collectio
user is a bean that had been stored in the session context.
subscriptions is a hashtable property of User. subscription is the name
the name that will be used within the iterate tag for each member of
subscriptions.
<logic:iterate id="subscription" name="user" property="subscriptions">
<tr>
<td align="left">
<bean:write name="subscription" property="host" filter="true"/>
</td>
<td align="left">
<bean:write name="subscription" property="username"
filter="true"/>
</td>
<!-- snip -->
</tr>
</logic:iterate>
If the firms collection were stored in the session context,
session.setAttribute("firms", getFirms()); // or whatever
I think you would just need to do something like this
<logic:iterate id="firm" name="firms">
<bean:write name="firms" property="name" filter="true"/>
</logic:iterate>
Hope this helps ...
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/