Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 26032 invoked from network); 3 Feb 2007 17:41:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2007 17:41:16 -0000 Received: (qmail 27736 invoked by uid 500); 3 Feb 2007 17:41:13 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 27708 invoked by uid 500); 3 Feb 2007 17:41:13 -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 27697 invoked by uid 99); 3 Feb 2007 17:41:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Feb 2007 09:41:13 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.39.178] (HELO web53611.mail.yahoo.com) (206.190.39.178) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 03 Feb 2007 09:41:06 -0800 Received: (qmail 67932 invoked by uid 60001); 3 Feb 2007 17:40:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=WdUPf9EvFTY4CDc75cr97v42OVdXmnqUXC6h0oM88CNOYdEADWT0GMgw6nXc7DEsKJzZarBCuJ2HrkP0Lj7lRGbvghneJXxrHVk4qZp+W2JjOyXnMA08Lv84faE5F0AS1chET7I+Hl8LF8emJiaUgTGZGAVmyqzOPly2U0UlO0k=; X-YMail-OSG: PGWstmAVM1lREqs59f97kDjBuuBafk05HMzLc0MZZcwDA5bJL6OXwJsSiUgM2r7jKT5124X0cFYdAw5oiM4Bgiml4GkzK1LLCU.Qw9WifYEwJRbil4Ph_UxsGnKEOzkS349pWRyww8LZUWIepzjQuM5qUw-- Received: from [72.205.63.191] by web53611.mail.yahoo.com via HTTP; Sat, 03 Feb 2007 09:40:45 PST X-Mailer: YahooMailRC/368.3 YahooMailWebService/0.6.132.7 Date: Sat, 3 Feb 2007 09:40:45 -0800 (PST) From: zafer Mohamed Subject: Populating collection in struts 2 Action properties To: user@struts.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1598891629-1170524445=:65158" Message-ID: <607597.65158.qm@web53611.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1598891629-1170524445=:65158 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I am struggling to populate a collection in the struts action's attribute. = My scenario is similiar to below=0A=0Apublic class PersonAction extends Act= ionSupport {=0A=0A =0A=0Aprivate Person person;=0A=0Apublic void setPerson(= Person =0Aperson){ this.person =3D person}=0Apublic Person getPerson(){ r= eturn person}=0A =0A=0A public String submit() throws Exception {=0A=0A re= turn SUCCESS;=0A=0A }=0A=0A}=0A=0A=0AAnd my Person class is =0A=0Apublic cl= ass Person=0A{=0A private List roles;=0A public List getRoles() { ret= urn roles; }=0A=0A public void setRoles(List roles) { this.roles =3D rol= es; }=0A=0A}=0A=0AAnd from my JSP I am trying to populate as below=0A=0A=0A=0AIf someone h= as a working scenario like this, please send me the todo's to get it workin= g. I have searched the webwork forms and tried most the tricks mentioned th= ere with no luck.=0A=0AThanks=0AZafer=0A=0A=0A=0A=0A =0A___________________= _________________________________________________________________=0ASucker-= punch spam with award-winning protection. =0ATry the free Yahoo! Mail Beta.= =0Ahttp://advision.webevents.yahoo.com/mailbeta/features_spam.html --0-1598891629-1170524445=:65158--