You are not alone, my frustrated brotha'. I've done this before and I was
pulling my hair out trying to figure out just what the heck was going on.

Glad you resolved it :)

robert

> -----Original Message-----
> From: Mohan Radhakrishnan [mailto:MohanR@;hclcomnet.co.in]
> Sent: Saturday, October 19, 2002 6:08 AM
> To: '[EMAIL PROTECTED]'
> Subject: options not showing
>
>
> Hi,
>
>       Answering my own question. The "LabelValueBean" was coded like this.
> That was the problem.
>
>       private String label = null;
>
>       private String value = null;
>
>       public LabelValueBean(String label, String value) {
>               label = label;                         --> No "this"
>               value = value;
>        }
>
> >  The code below is a copy of the example of the html select tag.
>
> >                     Vector wanGroupOptions = new Vector();
>
> >             wanGroupOptions.add( new LabelValueBean( "Label 0", "Value
> 0" ));
> >             wanGroupOptions.add( new LabelValueBean( "Label 1", "Value
> 1" ));
>
> >   Now the following works but generates empty options tags.
>
> >                      <html:select  property="wanGroups" size="1" >
> >                      <html:options collection="wanGroupOptions"
> property="value" labelProperty="label"/>
> >                      </html:select>
>
> >I am using the following code to debug and I am getting the correct size
> printed on the screen.
>
> >    <jsp:useBean id="wanGroupOptions" class="java.util.Vector"
> scope="application"/>
> >    <%= wanGroupOptions.size() %>
>
> >  What could be the problem ? Any ideas are appreciated ?
>
>
>


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