Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 57239 invoked from network); 3 May 2005 18:34:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 18:34:56 -0000 Received: (qmail 60516 invoked by uid 500); 3 May 2005 17:54:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 60463 invoked by uid 500); 3 May 2005 17:54:35 -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 60419 invoked by uid 99); 3 May 2005 17:54:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from yorktown.nielsenmedia.com (HELO yorktown.nielsenmedia.com) (206.113.192.17) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 10:54:27 -0700 Received: from NMRFLIMG1.nmrlan.net (nmrflimg1.nmrlan.net [10.38.67.53]) by yorktown.nielsenmedia.com (8.12.10/8.12.8) with ESMTP id j43HkgAd012174 for ; Tue, 3 May 2005 13:46:42 -0400 (EDT) Received: from [10.45.138.82] (unverified) by NMRFLIMG1.nmrlan.net (Content Technologies SMTPRS 4.3.14) with ESMTP id for ; Tue, 3 May 2005 13:52:35 -0400 Message-ID: <4277BA6A.5010909@reumann.net> Date: Tue, 03 May 2005 13:52:42 -0400 From: Rick Reumann User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: How to populate a map of lists in an action form? References: <4277501B.3030303@isotrol.com> In-Reply-To: <4277501B.3030303@isotrol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm stumped on the below also and want to know how to get this work. Typically my Lists and Map have beans nested in them with access methods to other lists and maps, but I know there should be a way to get this below to work efficiently (where you simply stuff lists and maps into other lists/maps. What is frustrating is I can pull all of it out fine with JSTL (A map with a single employees List which has a single Employee bean): (or a List wiht a List with an Employee bean in it): How to create the inputs for this in HTML, though, has me stumped at the moment. Daniel Lobo wrote the following on 5/3/2005 6:19 AM: > Hi, > > I have an action form with a map that can be accessed with getters and > setters. That map holds lists of elements. The problem is how to > populate that lists from the html form . I've tried with: > > > > and > > > > but doesn't work. > > However, i've implemented a new class child of ArrayList that adds this > two methods: > > public List getList() > { > return this; > } > public void setList(List list) > { > clear(); > addAll(list); > } > > And using this class in the map I can do from javascript: > > > > And the population of the ActionForm works properly. �Does somebody know > how to fix this problem without the use of this two "ugly" methods? > > Thanks. > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org -- Rick --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org