Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 47836 invoked from network); 13 Dec 2006 09:29:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 09:29:00 -0000 Received: (qmail 63667 invoked by uid 500); 13 Dec 2006 09:28:58 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 63632 invoked by uid 500); 13 Dec 2006 09:28:58 -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 63621 invoked by uid 99); 13 Dec 2006 09:28:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 01:28:57 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DATE_IN_FUTURE_06_12 X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [203.115.0.21] (HELO relay6.slt.lk) (203.115.0.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 01:28:47 -0800 Received: from dsk17 (localhost [127.0.0.1]) by relay6.slt.lk (8.13.4/8.13.4) with ESMTP id kBD9SvDr009667 for ; Wed, 13 Dec 2006 14:59:01 +0530 (LKT) Message-Id: <200612130929.kBD9SvDr009667@relay6.slt.lk> From: "mano dasanayake" To: "'Struts Users Mailing List'" Subject: RE: logic:iterate for arraylist of beans Date: Thu, 14 Dec 2006 02:59:13 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <4478b4ac0612130106u20381977n2321e215672cbf02@mail.gmail.com> Thread-Index: Accelf0u6LP5a5AQQ7WLhGHKhgcIWQAYTIiA X-Virus-Checked: Checked by ClamAV on apache.org Hi , I'm using 1.2 any how...what I mean in the Iterate code is that you simply Define an ID for the bean that you are about to iterate... For an instance, So you'r going to iterate thru your "EmplyList" and refer Each of ur bean by name "EMp". Then you can get whatever the attribute you want from your Bean,(Employee). For this case I think better to use ,,, Can you explain your requirement specifically? Regards, Mano -----Original Message----- From: Kranti Parisa [mailto:kranti.parisa@gmail.com] Sent: Wednesday, December 13, 2006 3:06 PM To: Struts Users Mailing List Subject: Re: logic:iterate for arraylist of beans Hi Mano, In the code you have written "Emp" should be the name of the ArrayList right? and in logic:iterate type is there? i hope you mean to say collection="" .. and i need to submit the form after selecting what ever checkboxes that i need to delete and then click on the detele button.but in the code that you gave me will submit the orm when i click on the checkbox i think. the problem is for the "value" of the checkbox i should assign the value of the checkbox as empid. so that when i submit the form we can capture all the checked empid using req.gerParamaterValues please suggest something On 12/14/06, mano dasanayake wrote: > > Hi, > As I understood what you have to do is, > Iterate through your list and add checkboxes as folllwing... > > > > onclick="submitForm("editaction.do?id= property="ID"/>")" /> > > > > > > Regards, > Mano > > > > > -----Original Message----- > From: Kranti Parisa [mailto:kranti.parisa@gmail.com] > Sent: Wednesday, December 13, 2006 2:07 PM > To: Struts Users Mailing List > Subject: logic:iterate for arraylist of beans > > hi, > > i am facing proble for the following > ========================= > assigning value to check box > > say logic:iterate is having arraylist > this arraylist is with beans > means for example employee bean > i want to view all emps in jsp > what we will do is we create a bean for each employee > and add tht bean to arraylist > so tht we have this arraylist in jsp > then we use logic:iterate > to iterate the arraylist > now we need to print the rows > each row contains a check box > this check box should get the value as empid > so tht when i select the checkbox > we can do delete or modify..etc > ============================ > > plzzzzz suggest/help from this. > stuck up completely with this. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > -- ------------------ Best Regards Kranti Kiran Kumar Parisa Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org