Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 18128 invoked from network); 3 Dec 2002 20:33:52 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Dec 2002 20:33:52 -0000 Received: (qmail 12199 invoked by uid 97); 3 Dec 2002 20:34:43 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 12183 invoked by uid 97); 3 Dec 2002 20:34:42 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 12165 invoked by uid 98); 3 Dec 2002 20:34:42 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Andy Kriger" To: "Struts Users Mailing List" Subject: RE: logic:iterate question Date: Tue, 3 Dec 2002 15:40:04 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yes - I store some data in it and then want to use that data later in the page. -----Original Message----- From: Sri Sankaran [mailto:Sri.Sankaran@sas.com] Sent: Tuesday, December 03, 2002 15:32 To: Struts Users Mailing List Subject: RE: logic:iterate question Dumb question: Is the object reference 'myObj' pointing at anything before set it to the name 'myObj'? That sounds confusing -- too many myObjs floating around. Suppose you had pageContext.setAttribute("myObj", foo, PageContext.PAGE_SCOPE); My question is whether 'foo' is set before this call. Sri > -----Original Message----- > From: Andy Kriger [mailto:akriger@greaterthanone.com] > Sent: Tuesday, December 03, 2002 3:24 PM > To: Struts Users Mailing List > Subject: logic:iterate question > > > I have a JSP. I have some scriplet code that defines an > object and then I want to iterate over that object, but I > keep getting an error that the object is not defined in the > page scope. Looking at the docs I don't understand what I'm > doing wrong. > > --- > > <% > pageContext.setAttribute("myObj", myObj, > PageContext.PAGE_SCOPE); %> > > > > > > --- > > myObj has a getRecords() method that returns the array i want > to iterate over > > When i load the page i get 'Cannot find bean myObj in scope > page' Any ideas? > > thx > andy > > > > -- > To unsubscribe, e-mail: > unsubscribe@jakarta.apache.org> > For > additional commands, > e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: