struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Galbreath" <>
Subject RE: Add blank option to select
Date Mon, 03 Mar 2003 23:27:55 GMT
Wow!  That may be the sexiest message I have ever seen in 3 years of struts
users-list!  You go, girl!

-----Original Message-----
From: Wendy Smoak [] 
Sent: Monday, March 03, 2003 5:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Add blank option to select

> What I need is to add a blank option to the select that is not present 
> in
> data.  Since my List implementation is just an adaptor, and not a new 
> data structure, I cannot just add another member.

This is what I do for Struts 1.1 with the EL tags, but maybe it will work or
can be adapted:

 <html-el:select property="state">
          <html-el:option value="">Any State</html-el:option>
          <html-el:options collection="states" property="key"
labelProperty="value"/>  </html-el:select> 

Can you use both an 'option' and an 'options' tag with 1.0?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message