I wrap my collection in a bean

<logic:iterate name="mybean" property="mycollection" id="myelement">

-----Original Message-----
From: Jason Vinson [mailto:[EMAIL PROTECTED] 
Sent: March 14, 2003 9:59 AM
To: Struts Users Mailing List
Subject: logic:iterate and collections

I am putting a collection on the request as an attribute, and i can't
access it for some reason.  Maybe a few of you could shed some light on
this problem:

<jsp>
  <logic:iterate collection="nestResults" id="spgExtendedSearchForm">
</jsp>

<console output>
javax.servlet.jsp.JspException: Cannot create iterator for this
collection
</console output>

nestResults is an ArrayList, and I have even tried using the .toArray()
method on it with no success.  When i cheat and put some code in the jsp
to check the attributes, i see that it's present:

ATTR: nestResults is [Ljava.lang.Object;@33934d

Any idea what i need to do here?
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to