Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 21494 invoked from network); 29 May 2003 06:39:35 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 May 2003 06:39:35 -0000 Received: (qmail 3823 invoked by uid 97); 29 May 2003 06:41:57 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 3816 invoked from network); 29 May 2003 06:41:57 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 May 2003 06:41:57 -0000 Received: (qmail 19537 invoked by uid 500); 29 May 2003 06:39:11 -0000 Mailing-List: contact struts-user-help@jakarta.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 struts-user@jakarta.apache.org Received: (qmail 19526 invoked from network); 29 May 2003 06:39:11 -0000 Received: from static24-72-2-198.reverse.accesscomm.ca (HELO samsara.kgbinternet.com) (24.72.2.198) by daedalus.apache.org with SMTP; 29 May 2003 06:39:11 -0000 Received: (from nobody@localhost) by samsara.kgbinternet.com (8.11.6/8.11.6) id h4T6dMR32637; Thu, 29 May 2003 00:39:22 -0600 Date: Thu, 29 May 2003 00:39:22 -0600 Message-Id: <200305290639.h4T6dMR32637@samsara.kgbinternet.com> X-Authentication-Warning: samsara.kgbinternet.com: nobody set sender to struts-user@keyboardmonkey.com using -f From: "Arron Bates" To: "Struts Users Mailing List" Subject: Re: Invalid indexed property ?! X-Mailer: Open WebMail 1.52 20011204 X-OriginatingIP: 216.14.192.226 (abates.struts-user) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Instead of this tag... ...try this one... ...basically the square breaces are for indexed properties. The round ones are for maps. You're trying to drive a map based property, so use the round ones instead. The JavaBean specification defines how these things should be done... http://java.sun.com/products/javabeans/ Arron. > > >

> > > > > > >
> I posted this before, but I didn't even get a response saying it was a > dumb question, not worth answering, so I'll ask again because I am > desperate. > I've got to finish this up soon, and I am stumped. > Again, sorry for the length - I just want to be clear. > > I have a form that need to collect some information about a user, using > checkbox groups like so: > Bourbon > [] Jim Beam > [] Makers Mark > [] Blantons > > Scotch > [] Johnnie Walker > [] Macallan > [] Lagavulin > > Beer > [] Budweiser > [] Heineken > [] Duvel > > Users can select 0 or more from each category, and I would like to use > multibox to create the checkbox groups. > I created a HashMap of String[]s like so: > public HashMap getDrinksList() { > drinks = new HashMap(); > drinks.put("Bourbon", new String[]{"Jim Beam","Makers > Mark","Blantons"}); > drinks.put("Scotch", new String[]{"Johnnie > Walker","Macallan","Lagavulin"}); > drinks.put("Beer", new String[]{"Budweiser","Heineken","Duvel"}); > } --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org