Does the code shown below close to what you are
looking for?

<bean:define id="editorsList" name="EDITORS, which is
the JavaBeans passed through the session scope"
scope="session" type="java.util.ArrayList"  />
    <html:select property="GIVE SOME NAME TO THIS
SELECT BOX" size="1" multiple="false">
        <option value="">-Select-</option>
        <html:options collection="editorsList"
labelProperty="label" property="value"/>
    </html:select>

-Caroline
--- andy wix <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am wondering if there is a neat way to overcome a
> typical problem when 
> offering a drop-down menu to a user.  It is common
> to have a default option 
> called say 'select'.  The drop down objects in my
> case are an arraylist 
> which are the result of a trip to the db.
> 
> So far, my contrived solution is to have a dummy
> object which I add at 
> position zero in the arraylist which has a name
> field of 'select', but this 
> is nasty as there are times I want to use the
> arraylist (stored in the 
> sesion) without this item and it means shipping a db
> with a 'must-have' 
> record.
> 
> Thanks,
> Andy
> 
>
_________________________________________________________________
> It's fast, it's easy and it's free. Get MSN
> Messenger today! 
> http://www.msn.co.uk/messenger
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to