Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 23340 invoked from network); 20 Jun 2007 17:13:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 17:13:07 -0000 Received: (qmail 73924 invoked by uid 500); 20 Jun 2007 17:13:01 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 73890 invoked by uid 500); 20 Jun 2007 17:13:01 -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 73878 invoked by uid 99); 20 Jun 2007 17:13:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 10:13:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.5.153.13] (HELO mail.dti.supsi.ch) (193.5.153.13) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 10:12:56 -0700 Received: from [127.0.0.1] (pcm2027.dti.supsi.ch [193.5.152.27]) by mail.dti.supsi.ch (8.12.11.20060308/8.12.11) with ESMTP id l5KHCVUG016326 for ; Wed, 20 Jun 2007 19:12:32 +0200 Message-ID: <4679604F.1060100@supsi.ch> Date: Wed, 20 Jun 2007 19:13:51 +0200 From: Roberto Nunnari User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: properties at times not found References: <9303A9A4755F584187871678E54487B6084C63A7@sbmail.soundbite.com> <46795A77.8070801@supsi.ch> In-Reply-To: <46795A77.8070801@supsi.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi again Scott. I tried anyways adding to my struts.xml but it doesn't help.. Any more hints? Roberto Nunnari wrote: > Hello Scott. > > ..but.. the list is a property of the action, and it's populated in > the execute method.. the JSP, should be rendered after > the execute method has returned, and so at that time it > should be safe to get the stories from the action, as > by now it should be set and ready. > > Do I miss anyhing? > > -- > Robi. > > > Scott Trafton wrote: >> If you are trying to load your list by using a parameter passed in.. say >> and Id from a link or another page, you might need to use the >> paramsPrepareParamsStack interceptor and implement Preparable in you >> action. >> >> I ran into a similar problem the other day. You would need to put your >> code to populate the list in the Prepare() method. >> >> http://struts.apache.org/2.x/docs/crud-demo-i.html >> check out the "The prepare approach" in the above link. >> >> I hope this helps. >> -Scott >> >> >> -----Original Message----- >> From: Roberto Nunnari [mailto:roberto.nunnari@supsi.ch] Sent: >> Wednesday, June 20, 2007 12:16 PM >> To: Struts Users Mailing List >> Subject: properties at times not found >> >> Hello. >> >> I have an action with a getter for a List. >> In the execute method of the action I can verify the list is not empty. >> But in the jsp view, at times it reports an empty list. >> >> >> the action: >> public class StorySearch extends ActionSupport { >> private List stories = null; >> ... >> public String execute() throws Exception { >> ... >> stories = dataManager.searchStories(...); >> for (Story story : stories) { >> System.out.println(" "+story.getId()); >> } >> return SUCCESS; >> } >> >> public List getStories() { >> return stories; >> } >> >> >> the JSP: >> >> >> >> >> >> >> >> >> This is the table caption >> >> >> >> Any hints? >> Thank you. >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org -- Roberto Nunnari Servizi Informatici SUPSI-DTI SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland email: mailto:roberto.nunnari@supsi.ch tel: +41-58-6666561 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org