Shane
This is how you do it:
<logic:iterate id="eachBean" name="yourBeanObject" property="beanList" >
<TR>
<TD><bean:write name="eachBean" property="name"/></TD>
</TR>
</logic:iterate>
In the above case in yourBeanObject class you will have the method getBeanList() which
will return a list of your beans. And in the bean class eachBean) you will have a
method getName() which will return the name variable.
Hope this helps.
-Nimmi
-----Original Message-----
From: Shane Warne [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 5:03 PM
To: [EMAIL PROTECTED]
Subject: Logic-Iterate
Hi,
I was trying to us the logic-iterate tag and i'm stuck
at a point. Please go thru the snippet below,
<logic:iterate id="test" name="mybean"
property="name">
<li><em><bean:write name="test"/></em></li>
<%
String myName = instance.getName(mybean.getName());
System.out.println(myName);
%>
</logic:iterate>
Now, how do i get one of the properties of a bean when
i'm iterating through a collection of a bean objects.
Bottom line is i would like to pass the property
getName() into a variable. Can anyone help me in
sorting this out ??
Thanks,
Shane..
=====
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/