Ah, you should be using "html:options", to replace your "logic:iterate", and the nested "html:option" and "bean:write". It will handle all of that. Read the API description. You can also see some examples of this in the "struts-exercise-taglib" application in the Struts distribution.
> -----Original Message----- > From: Yann Verlynde [mailto:[EMAIL PROTECTED]] > > Sorry but I doesn't work this is my complete code. > <html:select property="select_CMP" onchange="submit()"> > <html:option value="0">Choisissez votre cadre emplois</html:option> > <logic:iterate name="CMP" id="cmp" > type="com.oxade.struts.javabean.CadreEmploi"> > <html:option value="<bean:write name='cmp' property='CMP_ID'/>"> > <bean:write name='cmp' property='CMP_LIB'/> > </html:option> > </logic:iterate> > </html:select> > > ----- Original Message ----- > From: "Sri Sankaran" <[EMAIL PROTECTED]> > > Have you tried > > <bean:define id="foo" name="cmp" property="CMP_ID"/> > > <html:option value="<%=foo%>"> > > Sri > > -----Original Message----- > From: Yann Verlynde [mailto:[EMAIL PROTECTED]] > > Hello, > > This code doesn't work. How can I do I put a bean value in my > option tag? > > <html:option value='<bean:write name="cmp" property="CMP_ID"/>'> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

