Hi Suzette, thanks for your reply, am I correct to presume listofproducts in your example is of type Map? Tex...
"Suzette Daniel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > You can use the option tag with a Map, it works just fine, but you must use > html:options. Here's an example: > > <html:select property="product.productId"> > <html:option key="option.default" value="" /> > <html:options collection="listofproducts" property="value" > labelProperty="key"/> > </html:select> > > Suzette H. Daniel > > -----Original Message----- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 1:33 PM > To: 'Struts Users Mailing List' > Subject: RE: can I iterate on Map property? > > > You might want to look at el tags. > You can specify expressions in them to avoid iteration > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 24, 2003 1:23 PM > > To: [EMAIL PROTECTED] > > Subject: RE: can I iterate on Map property? > > > > No. Just use the <logic:iterate> tag. RTFM. > > > > -----Original Message----- > > From: Struts [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 24, 2003 10:21 AM > > To: [EMAIL PROTECTED] > > Subject: can I iterate on Map property? > > > > > > Hi all, > > > > in my form, I have a property of type Map. > > I would like to render a select/option field in my html using this > > property. Is this possible or do I need to convert it into an array? > > > > In either case, could some one be kind enough to show me an example? > > > > Thanks > > Tex... > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

