Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 51359 invoked from network); 1 Nov 2005 18:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Nov 2005 18:39:03 -0000 Received: (qmail 75345 invoked by uid 500); 1 Nov 2005 18:38:49 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 75323 invoked by uid 500); 1 Nov 2005 18:38:49 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 75312 invoked by uid 99); 1 Nov 2005 18:38:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 10:38:49 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kraghu@gmail.com designates 66.249.82.203 as permitted sender) Received: from [66.249.82.203] (HELO xproxy.gmail.com) (66.249.82.203) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 10:38:44 -0800 Received: by xproxy.gmail.com with SMTP id s10so932916wxc for ; Tue, 01 Nov 2005 10:38:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=tP+fPo8lE0wYYp9lo9OUZLXrxiCq2MegFYsWFvL/EaVBymX6ibz/vo1TbceEqkxx8awD8yoKqcecp9dY3IV+qLeGr6Ou9TYOxrPjOXIcTTlvUmSxBQdwz/jWv/WsOV1hCdvgapYO3E7o/cFrjV92OBL0XxSDgNXdPHJMMk0jEDM= Received: by 10.70.17.19 with SMTP id 19mr2554416wxq; Tue, 01 Nov 2005 10:38:27 -0800 (PST) Received: by 10.70.46.11 with HTTP; Tue, 1 Nov 2005 10:38:27 -0800 (PST) Message-ID: Date: Wed, 2 Nov 2005 00:08:27 +0530 From: Raghu Kanchustambham To: Struts Users Mailing List Subject: Re: c:forEach does not recognize HashSet when combined with nested EL ? In-Reply-To: <75e4ed690511011010k550de10hce5648922cabb4fa@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17501_22365832.1130870307781" References: <75e4ed690511011010k550de10hce5648922cabb4fa@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_17501_22365832.1130870307781 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Keith, Thanks for responding. However, How will this solve my problem? The problem is that the control i= s not entering into the loop in the first place. And you have put additional statements in the loop body. I have anyways tried it, and it did not work. Regards, Raghu On 11/1/05, Keith Sader wrote: > > You need to tell your loop to use the key or the value from your set. > > }"> > > > > ... > > that should fix it up. > > > > On 11/1/05, Raghu Kanchustambham wrote: > > Hi, > > Please look at the following code: > > studentEnrollment.paymentDetails}" > > > > > studentEnrollment is a bean that I have attached to the DynaActionForm > that > > is configured. That bean has a Set called paymentDetails. > > I intend to iterate over this HashSet and its just not working. Its not > even > > entering the loop. > > A little hack that makes the above work however is when I write extra > (less > > elegant code) like: > > > > <% > > DynaActionForm dynaForm =3D (DynaActionForm) request.getAttribute > > ("studentEnrollmentForm"); > > StudentEnrollment se =3D (StudentEnrollment) dynaForm.get > > ("studentEnrollment"); > > > > Set paymentDetails =3D se.getPaymentDetails(); > > request.setAttribute("paymentDetails",paymentDetails); > > %> > > > > 1) this code is in-elegant > > 2) While the loop is being entered, when this form is being "submitted" > to > > the action class, any details attached to text boxes for each > > 'paymentDetails row' is not being passed back anyways! :( > > Can someone tell me what I am conceptually wrong. I am relatively new t= o > > using Struts. > > Thanks in Advance. > > Raghu > > hth, > > -- > Keith Sader > ksader@gmail.com > http://www.saderfamily.org/roller/page/ksader > http://www.jroller.com/page/certifieddanger > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > ------=_Part_17501_22365832.1130870307781--