Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 73521 invoked from network); 16 Jan 2007 19:21:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 19:21:18 -0000 Received: (qmail 68731 invoked by uid 500); 16 Jan 2007 19:21:15 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 68699 invoked by uid 500); 16 Jan 2007 19:21:15 -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 68688 invoked by uid 99); 16 Jan 2007 19:21:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 11:21:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 11:21:05 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H6trR-0008BS-7G for user@struts.apache.org; Tue, 16 Jan 2007 11:20:45 -0800 Message-ID: <8396710.post@talk.nabble.com> Date: Tue, 16 Jan 2007 11:20:45 -0800 (PST) From: cilquirm To: user@struts.apache.org Subject: Re: [s2] how to make s:iterator work In-Reply-To: <8396587.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: aadi.deshpande@gmail.com References: <8396587.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org scratch my original comment ( though the part regarding using the jstl is still valid. ) the problem for you is that since listOfBooks is not in the valuestack directly, you would have to reference it via the request object, like so ... walidito wrote: > > Hi everybody. > I have a problem with displaying a list of objects that I extract from a > hibernate database. I' searching for the simpler and the better way to do > it please. > I have two issues : > > I am not sure about how to send it to the jsp. For the moment I am trying > this one from my action : > > private List getListOfBooks() { > ... // get books from Data Access Object classes > } > > public String execute() throws Exception { > ... > booklist = getListOfBooks(); > this.request.setAttribute("listOfBooks", booklist); > return SUCCESS; > } > In my jsp, i don't know how to display it. > I tried many solutions without success among them : > > > > > which does not work. > > Help please !! > -- View this message in context: http://www.nabble.com/-s2--how-to-make-s%3Aiterator-work-tf3022827.html#a8396710 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org