Try use:
  request.setAttribute("productTypes", productTypes);
instead
  session.setAttribute("productTypes", productTypes);

Fco. Goncalves

-----Mensagem original-----
De: Gus Delgado [mailto:gdelgado@;oceanobjects.com]
Enviada em: terca-feira, 12 de novembro de 2002 18:07
Para: Struts Users Mailing List
Assunto: html:select and collections


I declare a tag in my jsp like this
<html:select name="dataEntryForm" property="productType">
             <html:options collection="productTypes" property="value"
labelProperty="label"/>
 </html:select>

and my action for pre population goes something like this

Collection productTypes = getProductTypes(results);
 session.setAttribute("productTypes", productTypes);

I'm getting an error saying that the productTypes bean does not exist?
any ideas



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to