Or you can override the form value like this <html:select ... value="x"> If the value you set doesn't exist then nothing will be selected. Which means the first item will be selected, because something always is (if we are talking about a dropdown and not a multiselect). But you can always add a blank first item like this <html:option value="" />
- Dan > -----Original Message----- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 24, 2003 8:02 AM > To: Struts Users Mailing List > Subject: Re: Select without selected value > > > Just don't set the form value. > > > On 24 Dec 2003, at 15:15, AKostylev wrote: > > > I want to have select element without any selected values > by default. > > I can do this by setting selectedIndex=-1 or > > value='not_existing_value' in JavaScript. > > Can I do this with Struts functionality? > > > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]