> Hi Guys,
> I have been getting this strange error where I get a bean not found
> error when I use <logic:iterate> . The issue
> is that if I substitute the <logic:itearate> with a plain <% scriptlet
you can replace with or substitute for but you cannot substitute with
> <logic:iterate id="element" name="results" scope="session"
> type="bean.Faculty" >
[quoted text clipped - 6 lines]
> </tr>
> </logic:iterate>
This should work, but is a bit of a hack:
<logic:iterate id="element"
collection='<%=request.getSession().getParameter("results")%>'
type="bean.Faculty" >
Alternatively, you could make your list a property of a bean and save the
bean in session, then use something like:
<logic:iterate id="element" name="myBean" property="myList"
type="bean.Faculty">
Lew - 22 Jun 2007 11:59 GMT
"Cerveza Mas Fina" wrote:
> <logic:iterate id="element" name="results" scope="session"
> type="bean.Faculty" >
...
> <%
> ArrayList al = (ArrayList)session.getAttribute("result");
You call it "results" in the iterate tag, "result" in the getAttribute() call.

Signature
Lew
Cerveza Mas Fina - 23 Jun 2007 03:59 GMT
Thanks Guys.
> "Cerveza Mas Fina" wrote:
> > <logic:iterate id="element" name="results" scope="session"
[quoted text clipped - 7 lines]
> --
> Lew
Lew - 23 Jun 2007 13:58 GMT
> Thanks Guys.
Your avoidance of top posting will signify gratitude sufficiently.

Signature
Lew