struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <>
Subject Re: <nested:iterate> & building columns
Date Mon, 21 Oct 2002 14:57:01 GMT
Arron Bates wrote:
>>What about a Set?
> List and Map implementations only. Only because the properties for
> getting at an item in a collection needs a key. int's for lists and
> arrays, and objects (strings) for the mapped collections. Set is just a
> bunch, and there's no way in an iteration for the system to be able to
> get a specific item. This is in relation to updating from a request, and
> in the nested tags case, drawing the output in the first place.

This might be a documentation bug then, quoted from current CVS:

"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 or primitives.
     * 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. NOTE - See below for additional information about accessing 

And Set extends Collection.



Adam Sherman
Software Developer
Teach and Travel Inc.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message