struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SanJ.SANJAY" <>
Subject Struts logic:iterate does not recognize the collection.
Date Fri, 07 Nov 2008 17:33:15 GMT

 I am trying to display the collection that I am setting in struts action to
the request scope.
 But when I try to use struts <logic:iterate> to display the collection,
 it says does not find xxxCollection bean in any scope.

In Action class:
 for (int i = 0; i < children.length; i++)
{ xxxCollection.add(filename); }
request.getSession().setAttribute("xxxCollection", xxxCollection);

I have getter and setters for this collection in the form.

 But In JSP, it does not recognize the collection:

<logic:iterate id="iprecord" indexId="ind" name="xxxCollection" >
 <bean:write name="iprecord" property="xxxCollection" />

I am clueless about why the bean is invisible??

View this message in context:
Sent from the Struts - User mailing list archive at

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

View raw message