Re: html:options and html:select

2004-02-02 Thread Claire Wall
you can do the following: html:select name=FormName property=xxx logic:iterate id=product name=FormName property=ListName option value=bean:write name=product property=id/bean:write name=product property=name/ /logic:iterate /html:select 'property' of the select box should be

Re: html:options and html:select

2004-02-02 Thread Mark Lowe
ArrayList productList = new ArrayList(); CProduct product = new CProduct(); product.setId(new Integer(1)); product.setName(My Product); productList.add(product); request.setAttribute(products,productList.toArray()); ... html:option value=--/html:option html:options collection=products

RE: html:options and html:select

2004-02-02 Thread anant.parnami
Hi Frank Try using Request.setAttribute(collectionName,list); html:select name=formBeanName property=seletedValue html:options collection=collectionName value=id labelProperty=name name=comCProduct/ /html:select I

RE: html:options and html:select

2004-02-02 Thread Guillermo Meyer
=id label=name/ /html:select Regards, Frank -Ursprüngliche Nachricht- Von: Claire Wall [mailto:[EMAIL PROTECTED] Gesendet: Montag, 2. Februar 2004 13:22 An: Struts Users Mailing List Betreff: Re: html:options and html:select you can do the following: html:select name=FormName property

RE: html:options and html:select

2004-02-02 Thread Jiin-Her Lu
If your list stores objects which is the type of Struts' LabelValueBean (provides only getValue() and getLabel() methods), then you can simply as html:select name=formBeanName property=seletedValue html:options collection=collectionName value=value