struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <>
Subject Re: Add blank option to select
Date Mon, 03 Mar 2003 21:57:29 GMT
Why can't you just put this at the beginning of your select box <option 


>From: "Bredesen, Chris - NA US HQ Delray" <>
>Reply-To: "Struts Users Mailing List" <>
>To: "Struts Users Mailing List (E-mail)" <>
>Subject: Add blank option to select
>Date: Mon, 3 Mar 2003 16:50:59 -0500
>Hi All,
>I have a proprietary table object which I expose to html:options via an
>adaptor class that extends AbstractList.  The List implementation gives
>collection-like random access to my proprietary object which is then used 
>build a select box.
>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.  I tried doing a Union in my
>SQL query to tack on a blank record but the crap DB API won't have it.
>Any way to do with Struts 1.0.2?  I guess extending the OptionsTag (haven't
>worked this one out in my head yet but I assume it would be fairly
>straightforward) is the way to go, but if anyone has another way, I'm all
>Chris Bredesen
>Software Architect
>MyTravel USA
>part of MyTravel group
>(561) 266-6154
>To unsubscribe, e-mail:
>For additional commands, e-mail:

The new MSN 8: smart spam protection and 2 months FREE*

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

View raw message