You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Tom Klaasen (TeleRelay)" <to...@telerelay.com> on 2001/11/06 09:41:31 UTC
RE: issue
You're right.
But I read you suggested to leave the <logic:iterate> tag there also...
tomK
> -----Original Message-----
> From: dhay@lexmark.com [mailto:dhay@lexmark.com]
> Sent: woensdag 31 oktober 2001 18:56
> To: Struts Users Mailing List
> Subject: RE: issue
>
>
>
>
> Isn't that the same thing?! The options tag encapsulates
> iterating through a
> collection a creating an option for each one!
>
> Thus the following should do the same thing as your code below:
>
> <html:select property="selected" size="10" multiple="true">
> <html:options name="supplierList"
> property="supplierUser.company.name"/>
> </html:select>
>
> Cheers,
>
> Dave
>
>
>
>
>
> "Tom Klaasen (TeleRelay)"
> <to...@interlock.lexmark.com> on
> 10/31/2001 03:27:58 AM
>
> Please respond to "Struts Users Mailing List"
> <st...@interlock.lexmark.com>
>
> To: "Struts Users Mailing List"
> <st...@interlock.lexmark.com>
> cc: (bcc: David Hay/Lex/Lexmark)
> Subject: RE: issue
>
>
>
> 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: dhay@lexmark.com [mailto:dhay@lexmark.com]
> > 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 <ma...@interlock.lexmark.com> on
> > 10/30/2001
> > 08:17:59 AM
> >
> > Please respond to "Struts Users Mailing List"
> > <st...@interlock.lexmark.com>
> >
> > To: struts-user%jakarta.apache.org@interlock.lexmark.com
> > 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-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>