Struts-el is a good solution for this.  

  <html-el:options collection="${formean.sb_l}" property="id"
labelProperty="value"/> </html:select>

-----Original Message-----
From: Andreas Langmann [mailto:andreas.langmann@;isb-ag.de] 
Sent: Monday, November 11, 2002 4:15 AM
To: 'Struts Users Mailing List'
Subject: html:select question


Hello,

i use a selectbox... the variables sb_lx and sb_l are inside the
formbean. 
With the attached jsp-code i need to put the object sb_l from formbean
into context....

request.setAttribute("sb_l", myform.getSb_l());

<html:select property="sb_lx" multiple="false" size="6">
  <html:options collection="sb_l" property="id" labelProperty="value"/>
</html:select>
So it works fine... but is there a way to do it without the
setAttribute?

Tnx,

Andreas

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG             
Karlstr. 52-54   
76133 Karlsruhe    

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

--
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