Change the name of id to other name such as "element", definitely your code
will work as long as you defined 2 beans, bean1 and bean2, and bean1 has a
vector field containing more than 1 instances of bean2.
One thumb of rule, use different names for id, name, property fro the iterate
tag. Enjoy!
Kaikuo Luo
stsrut strut <[EMAIL PROTECTED]> wrote:
Hello,
Does any one know as how to use iterate tag with
Vector collection which contains bean?
I have a bean that models one row of data and then
stuff them all into a Vector. E.g. bean name is
"mybean" has property "Property1" and bean has been
stuffed into vector myVector with rows of data from
database. When I use this in iterator tag as follows
it gives run time failure in cutom tag.
<logic:iterate id="mybean" name ="mybean"
property="myVector">
<tr>
<td align="left">
<bean:write name="mybean" property="property1"
filter="true"/>
</td>
</tr>
</logic:iterate>
Is there any other way of using Vector of beans to
iterate using iterate tag ?
Thanx in advance
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>