Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 7897 invoked from network); 7 May 2009 16:03:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 16:03:40 -0000 Received: (qmail 23062 invoked by uid 500); 7 May 2009 16:03:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23011 invoked by uid 500); 7 May 2009 16:03:37 -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 23001 invoked by uid 99); 7 May 2009 16:03:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 16:03:37 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [134.174.159.105] (HELO genome.med.harvard.edu) (134.174.159.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 16:03:26 +0000 Received: from [10.200.12.44] [10.200.12.44] by genome.med.harvard.edu with ESMTP (SMTPD-10.01) id A63A274C; Thu, 07 May 2009 12:03:06 -0400 Message-ID: <4A03063A.10005@genome.med.harvard.edu> Date: Thu, 07 May 2009 12:03:06 -0400 From: Timothy Orme User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP References: <23429087.post@talk.nabble.com> <9f960bad0905070857n2445ee6dtb4fc4d45e5f3f12e@mail.gmail.com> <366601530905070900i72785a64h9be25c1b4163da40@mail.gmail.com> In-Reply-To: <366601530905070900i72785a64h9be25c1b4163da40@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ah good catch, this is whats causing it. Although as I said, you dont need to rename the method if you've setup your struts.xml as it is. Jim Kiley wrote: > Even then it won't be OK. The OP is declaring myList as a local variable in > getAllEmployees(), so getMyList won't return it. Change the line "List > myList = new ArrayList();" in getAllEmployees() to just be "myList = > new ArrayList();" and do as Lukasz suggests and you should be OK. > jk > > On Thu, May 7, 2009 at 11:57 AM, Lukasz Lenart > wrote: > >> 2009/5/7 SofIAm : >>> public String getAllEmployees() { >> This method is never called, renamed it to execute() and should be ok >> >> >> Regards >> -- >> Lukasz >> http://www.lenart.org.pl/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org