I don't think so: <html:options> is for supplying a whole bunch of
options at once, not in an iteration loop.

IMO you should leave the value="" out: it is an attribute that has no
value, so I could see the cause of the error message :-P

So try this:

<html:select property="selected" size="10" multiple="true">
 <logic:iterate id="element" name="supplierList" scope="request">
 <html:option> <bean:write name="element"
 property="supplierUser.company.name"/> </html:option>
 </logic:iterate>
</html:select>

hth,
tomK


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: dinsdag 30 oktober 2001 18:34
> To: Struts Users Mailing List
> Subject: Re: issue
> 
> 
> 
> 
> You need to use the <html:options> tag!!  (note, the 's' on the end)
> 
> Dave
> 
> 
> 
> 
> 
> Mahesh Agarwal <[EMAIL PROTECTED]> on 
> 10/30/2001
> 08:17:59 AM
> 
> Please respond to "Struts Users Mailing List"
>       <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:    (bcc: David Hay/Lex/Lexmark)
> Subject:  issue
> 
> 
> 
> hi all
> 
> Inside the value of the option tag I want to dynamically get 
> the value of
> the bean element. If embed the same bean tag inside the value then it
> says "Attribute has no value". The following is the code.
> <html:select property="selected" size="10" multiple="true">
> <logic:iterate id="element" name="supplierList" scope="request">
> <html:option value=""> <bean:write name="element"
> property="supplierUser.company.name"/> </html:option>
> </logic:iterate>
> </html:select>
> 
> the alternative i used is
> 
> <html:select property="selected" size="10" multiple="true">
> <logic:iterate id="element" name="supplierList" scope="request">
> <html:option value="<bean:write name="element"
> property="supplierUser.company.name"/> "> <bean:write name="element"
> property="supplierUser.company.name"/> </html:option>
> </logic:iterate>
> </html:select>
> 
> but its giving error
> 
> can i help me out
> 
> thanks in lot in advance
> 
> mahesh
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to