Hi Michael,

Thanks for your reply - I'll definitely give it a go!

Could you elaborate what happens when I specify the name along with the
property attribute? Does struts iterate through each item in the Map,
calling get("key") and get("value") on each item in the Map? Is there any
link/website where I can read more about this?

Many Thanks
M

> -----Original Message-----
> From: Michael D. Norman [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 11, 2003 3:31 AM
> To: Struts Users Mailing List
> Subject: Re: HashMap with options
> 
> 
> > Manav wrote:
> >
> > Can i use HashMap with options?
> >
> > something like:
> >
> > <bean:define id="statusFilters" property="statusFilters"
> > type="java.util.HashMap" />
> > <html:options collection="statusFilters" property="key"
> > labelProperty="value"/>
> 
> Manav,
> 
> Yes, you should be able to use any Map as the collection, with the
> attributes you have defined above for <html:options.../>.  
> However, your
> <bean:define.../> needs a name attribute if you're going to 
> use the property
> attribute.
> 
> -- Michael D. Norman
>    ProbuSoft - Custom Software Development
>    http://www.probusoft.com/
>    913-390-6951
>    [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _____________________________________________________________________
> This e-mail has been scanned for viruses by MCI's Internet 
> Managed Scanning Services - powered by MessageLabs. For 
> further information visit http://www.mci.com
> 

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

Reply via email to