struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mei Zhu" <>
Subject RE: Value Object in a Collection
Date Tue, 28 Jan 2003 20:49:37 GMT
If your outer iterate loops through a collection of java.util.List, in your
inner iterate, you should not specify property attribute.


-----Original Message-----
From: neelima mahesh []
Sent: Tuesday, January 28, 2003 2:42 PM
Subject: Value Object in a Collection

Hi all,

    I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.

<logic:iterate name="parentCollection"
               indexId="parentIndex"  //arbitrary name
               id="parent"            //arbitrary name
  <logic:iterate name="parent"
                 indexId="childIndex"  //arbitrary name
                 id="child"            //arbitrary name
    <bean:write name="child" property="_whatever_" />
    // etc.

and i'm getting the following error....

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection   at

Thanks in Advance! appreciate any help in this regard.


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message