This doesn't say what you think it is saying. The documentation is unfortunately vague here. There are three possible collections involved here. A collection that is just the values. A collection that is just the labels. A collection of beans that hold both the values and labels, like a LabelValueBean. The only way to specify the latter is with the "collections" attribute.
----- Original Message ----- From: "Eric Rizzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 10:10 AM Subject: Re: Options tag > 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. >

