Hi !
I have a problem with the <logic:iterate > tag
the following piece of 'code' works ok=20
(so I know I=B4m doing nothing wrong on the Controller/Model side):
<jsp:useBean id=3D"item" scope=3D"page" class=3D"com.mycomp.SomeData"/>
<table>
<%=09
Iterator it =3D
((Collection)session.getAttribute("someList")).iterator();
while (it.hasNext()){
pageContext.setAttribute("item",it.next());
%>
<tr>
<td align=3D"left">
<bean:write name=3D"item" property=3D"name"/>
</td>
<td align=3D"left">
<bean:write name=3D"item" property=3D"manager"/>
</td>
<td align=3D"left">
<bean:write name=3D"item" property=3D"ID"/>
</td>
</tr>
<% } %>
</table>
but what I really like to do is
(our web designer would appreciate it !):
<jsp:useBean id=3D"item" scope=3D"page" class=3D"com.mycomp.SomeData"/>
<table>
<logic:iterate id=3D"item" name=3D"someList">
<tr>
<td align=3D"left">
<bean:write name=3D"item" property=3D"name"/>
</td>
<td align=3D"left">
<bean:write name=3D"item" property=3D"manager"/>
</td>
</tr>
</logic:iterate>
but with the second approach the table is always empty...
am I too stupid to use the iterate tag ?
or is something else wrong with my approach ?
pleas help !
Regards
flo