struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
Subject Re: Displaying a HashMap as a <select>
Date Mon, 07 Mar 2005 16:48:35 GMT
From: "David Johnson" <chachany@gmail.com>
> I simply want to create a select box containing all the items in my
> HashMap (displaying the codeName but passing the codeID)
> What's the easiest way to do this? Can I do this wil just a vanilla
> HashMap? The examples are slightly confusing.

I agree... I can never figure out what combination of tag attributes will do
what I want just from reading the docs.  Here's an example from a working
webapp:

<html-el:select property="type">
            <html-el:options collection="contactTypes"
                                        property="key"
                                        labelProperty="value"/>
</html-el:select>

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message