Will Jaynes wrote:
> The "collection" attribute requires that the collection exists in some scope. It
> seems that there isn't a way to use a collection straight from the form bean.
Actually, there is. From the HTML Tags documentation:
[if no collection attribute is specified]
"The collection of values actually selected depends on the presence or absence
of the name and property attributes. The following combinations are allowed:
* Only name is specified - The value of this attribute is the name of a JSP
bean in some scope that is the collection.
* Only property is specified - The value of this attribute is the name of a
property of the ActionForm bean associated with our form, which will return the
collection.
* Both name and property are specified - The value of the name attribute
identifies a JSP bean in some scope. The value of the property attribute is the
name of some property of that bean which will return the collection."
So by specifying just the property attribute, you can get the collection from
your form bean.
HTH,
Eric
--
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-----------------------------
I embrace my personality flaws, for without them
I might have no personality at all.