struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Struts logic:iterate does not recognize the collection.
Date Fri, 07 Nov 2008 17:38:38 GMT
--- On Fri, 11/7/08, SanJ.SANJAY wrote:
> I am trying to display the collection that I am setting in
> struts action to the request scope.

The code is putting it in session scope, FWIW:

> request.getSession().setAttribute("xxxCollection", xxxCollection);
> [...]
> <logic:iterate id="iprecord" indexId="ind" name="xxxCollection" >
>   <bean:write name="iprecord" property="xxxCollection" />
> </logic:iterate>

Does it not recognize the *collection*? In other words, is it not iterating at all? Or is
the <bean:write...> funky: does each element of xxxCollection have an xxxCollection
property and is printing that what you really mean to do?

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message