You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Oliver Meyn <ol...@mineallmeyn.com> on 2002/11/05 21:04:17 UTC

Newbie logic:iterator question

This thread existed a few weeks ago, according to the archives, where I
found this suggested example for how to get iterator working (from Alexis
Gallagher):

<jsp:useBean id="userListHelper" scope="request"
class="com.tpc.UserListHelper" />

<logic:iterate id="item" name="userListHelper" property="userList"
indexId="index">
	<bean:write name="item" property="username"/>
</logic:iterate>

which appears to be the same idea as used in the struts-example, but I can't
get this to work, as it fails with the error:

Cannot find bean item in scope null

Similar attempts with my own beans also fail (as does explicitly setting the
scope, where the error just becomes "... item in scope application" or
whatever scope is specified).

Any suggestions?

Thanks very much,
Oliver


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>