I put the bean on the method execute on myAction

ArrayList formatosArquivos = new ArrayList();

formatosArquivos.add("CSV");

formatosArquivos.add("XML");

formatosArquivos.add("Algorithmics");

ProdutoView produto = new ProdutoView();
produto.setFormatosArquivos(formatosArquivos);

session.setAttribute("produtoView",produto);


So, How I generate a drop-down list on the next Jsp page???



----- Original Message -----
From: "Shivanjali Bhutkar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 8:37 PM
Subject: RE: Iterate a Collection inside a bean of session???


> hello-where can i find more information on session beans?
>
> -----Original Message-----
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 14, 2003 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Iterate a Collection inside a bean of session???
>
>
> For option tag, you might want to use the optionCollection tag instead
> for a collection.
> .V
>
> Mauricio T. Ferraz wrote:
>
> > I have a produtoBean on session and this has a property ArrayList
> formatosArquivos
> >
> > How I put the value of option to the same name of  <bean:write
> name="formato"/>  ?
> >
> >
> >
> > <logic:iterate id="formato" name="produtoView"
property="formatosArquivos"
> indexId="index" scope="session" >
> >
> > <html:option value="?????"><bean:write name="formato"/></html:option>
> >
> > </logic:iterate>
> >
> >
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to