struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Kriger" <>
Subject logic:iterate question
Date Tue, 03 Dec 2002 20:24:29 GMT
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);

<logic:iterate id="ele" name="myObj" property="records" scope="page">
   <!-- do stuff -->


myObj has a getRecords() method that returns the array i want to iterate

When i load the page i get 'Cannot find bean myObj in scope page'
Any ideas?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message