struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Kriger" <akri...@greaterthanone.com>
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 -->
</logic:iterate>

---

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:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message