Maybe I'm being dense today, but according to the <html:options> doc, the
collection is the 

        "Name of the JSP bean (in some scope) which is itself a Collection
of other beans, each of which has properties 
        named by the "property" and "labelProperty" attributes that are used
to retrieve the value and label for each 
        option, respectively." 

Am I not intrepreting something correctly?  If I don't refer to the bean
containing my Vector (and instead refer to the Vector directly), how does
struts 'find' it?

Jerry

> -----Original Message-----
> From: Rajesh Kalluri [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 11:14 AM
> To: Struts Users Mailing List
> Subject: RE: <html:options> not creating iterator
> 
> 
> Jerry, collection attribute in html:options accepts a 
> Collection of beans
> and not a bean having a collections of beans.
> Try passing the html:options vector directly instead of the bean that
> contains the vector.
> 
> <html:select property="selectedOption">
>                       <html:options 
> collection="resultsVector" labelProperty="label"
> property="key" />
> </html:select>
> 
> 
> -----Original Message-----
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 11:29 AM
> To: '[EMAIL PROTECTED]'
> Subject: <html:options> not creating iterator
> 
> 
> Hi All,
> 
> I'm having a problem with the following :
> 
>       <snippet>
> 
>               <html:select property="selectedOption">
>                       <html:options collection="resultsVector"
> labelProperty="label" property="key" />
>               </html:select>
> 
>       </snippet>
> 
> where resultsVector is a bean that has a Vector object.  The 
> 'label' and
> 'key' properties are in another bean that has been added to 
> the Vector.
> When I try to render the JSP, I'm getting the following message:
> 
>       Cannot create iterator for com.myCompany.resultsVector
> 
> I'm using the 07/26 nightly build.  Any ideas?
> 
> TIA,
> 
> Jerry Jalenak
> Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential
> and is intended solely for the use of the individual or 
> entity to which it
> is addressed. If you are not the intended recipient or the person
> responsible for delivering the transmission to the intended 
> recipient, be
> advised that you have received this transmission in error and 
> that any use,
> dissemination, forwarding, printing, or copying of this information is
> strictly prohibited. If you have received this transmission 
> in error, please
> immediately notify LabOne at (800)388-4675.
> 
> 
> 
> --
> 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]>


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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

Reply via email to