Original Message-
> From: Matthew Hegarty [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 3:35 PM
> To: 'Struts Users Mailing List'
> Subject: RE: html:select - can't display default option
>
>
> > If you want the option with a '' value
> If you want the option with a '' value to be selected, set the corresponding
> property in your bean to ''.
I can't because the type is Boolean.
I was wanting to display the empty option if the value returned is null.
-
To unsu
--- Matthew Hegarty <[EMAIL PROTECTED]> wrote:
> Thanks for the responses.
> Still not quite there though...
>
> Paul wrote:
> > Try not explicitly setting the value attribute.
>
> This works insofar as the drop-down displays correctly if the value is true
> or false, but if the value is null, t
To: Struts Users Mailing List
Subject: Re: html:select - can't display default option
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew Hegarty wrote:
| Hi all
|
| I am using , and trying to get the drop-down to default
to a Boolean value in a bean, ie true, false, or blank if the bean
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew Hegarty wrote:
| Hi all
|
| I am using , and trying to get the drop-down to default
to a Boolean value in a bean, ie true, false, or blank if the bean is null.
| My bean (MyBean) contains the method getMyValue() which returns a
Boolean object.
|
The html:select tag should do this automatically for you I think. Try not
explicitly setting the value attribute.
Looking at your code I'm surprised it works - you can;t nest jsp tags inside
other tags as far as I know (or is that a JSP 2 feature?).
Paul
> -Original Message-
> From: Matt
6 matches
Mail list logo