Matt,

When you download the struts dist you can find an example by following
this path: "jakarta-struts-dist\web\exercise-taglib\logic-iterate.jsp"

In your email you mentioned a "Collection of beans." I assume you mean
to say that you have an implementation of java.util.Collection of some
beans.  If this is true you are all set.  The struts-documentation site
(http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate)
can give you even more information.  I pasted a sample below:

>>>>>

The collection to be iterated over MUST conform to one of the following
requirements in order for iteration to be successful:

An array of Java objects (but not primitive data types such as "int") 
An implementation of java.util.Collection, including ArrayList and
Vector. 
An implementation of java.util.Enumeration. 
An implementation of java.util.Iterator. 
An implementation of java.util.Map, including HashMap, Hashtable, and
TreeMap

<<<<<


Hope that helps you get started.

Ben Simpson
[EMAIL PROTECTED]





-----Original Message-----
From: Matt Vredenburg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 15, 2002 4:19 PM
To: Struts Users Mailing List
Subject: I would like to iterate though a Collection of beans and needs
some help?

I have a collection of beans (a bean for each row within the database)
and 
would like some guidance on how to use the Iterate tag to walk through 
them.

Or more yet, can it be done using Iterate tag?

An example would be great!

Thanks,

Matt


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to