struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Coast <nathan.co...@levelseas.com>
Subject Iterate problem
Date Tue, 21 Aug 2001 17:28:11 GMT
Hi,

got a wierd problem with the iterate tag.  We've used it loads without
problem and can't see why it doesn't work in one situation.

this doesn't work:

<logic:iterate name="myBean" property="myBeanCollection" id="myId">
....
</logic:iterate>
the iterations start but throws the 'cannot find bean "myId" in scope null'
error

wierder still, this code works:
<%
	Collection col = ((MyBeanClass)
pageContext.findAttribute("myBean")).getMyBeanCollection(); %>

<logic:iterate collection="<%=col%>" id="myId">
....
</logic:iterate>


Doesn't seem to make sense to me!

Anyone else seen this?
Cheers
Nathan

	


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Mime
View raw message