From user-return-132807-apmail-struts-user-archive=struts.apache.org@struts.apache.org Tue Mar 08 02:17:58 2005 Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 44659 invoked from network); 8 Mar 2005 02:17:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Mar 2005 02:17:58 -0000 Received: (qmail 22823 invoked by uid 500); 8 Mar 2005 02:17:49 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 21915 invoked by uid 500); 8 Mar 2005 02:17:47 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 21902 invoked by uid 99); 8 Mar 2005 02:17:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from smtp106.mail.sc5.yahoo.com (HELO smtp106.mail.sc5.yahoo.com) (66.163.169.226) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 07 Mar 2005 18:17:46 -0800 Received: from unknown (HELO auburn) (jmitchtx@68.209.114.10 with login) by smtp106.mail.sc5.yahoo.com with SMTP; 8 Mar 2005 02:17:43 -0000 Message-ID: <020901c52385$0230eaf0$6502a8c0@auburn> From: "James Mitchell" To: "Struts Users Mailing List" , References: <8aef647c050307083347b81ee@mail.gmail.com> Subject: Re: Displaying a HashMap as a > Hi all > > I have a HashMap in my application context called "codes" that > contains a bunch of key,value pairs where the key is an Integer > representing the codeID and the value is a string representing the > codeName > > 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. > > help! > > Also, keep in mind if the way I have the data stored (in a HashMap > called "codes on the application context) wont work, is there a better > way to do it? > > > > > -- > -Dave > ChaChaNY@Gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org