RE: html:select - can't display default option

2004-04-23 Thread Paul McCulloch
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

RE: html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
> 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

RE: html:select - can't display default option

2004-04-23 Thread Hubert Rabago
--- 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

RE: html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
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

Re: html:select - can't display default option

2004-04-23 Thread Victor R. Cardona
-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. |

RE: html:select - can't display default option

2004-04-23 Thread Paul McCulloch
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