Well, yes there is. The inital form value is an empty string; doing it this way allows it to be preselected accordingly. <html:option value=""> outputs <option value="">, not <option value="null">.
-= J > -----Original Message----- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 4:07 PM > To: [EMAIL PROTECTED] > Subject: RE: Add blank option to select > > There's no point in using the taglib to output a null valued > <option> tag. > > David > > >From: "James Childers" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: RE: Add blank option to select > >Date: Mon, 3 Mar 2003 16:04:46 -0600 > > > > > >I just had to do this about 30 minutes ago. All I did was: > > > ><html:option value=""><html:message key="key.value" /></html:option> > > > >Quick & dirty, and it doesn't add anything to your List. But > I didn't feel > >that adding empty entries to my List was something I really > wanted to do. > > > >-= J > > > > > -----Original Message----- > > > From: Bredesen, Chris - NA US HQ Delray > > > [mailto:[EMAIL PROTECTED] > > > Sent: Monday, March 03, 2003 3:51 PM > > > To: Struts Users Mailing List (E-mail) > > > Subject: Add blank option to select > > > > > > What I need is to add a blank option to the select that is > > > not present in my > > > data. Since my List implementation is just an adaptor, and > > > not a new data > > > structure, I cannot just add another member. I tried doing a > > > Union in my > > > SQL query to tack on a blank record but the crap DB API > won't have it. > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]