You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rasika <it...@yahoo.co.uk> on 2006/11/15 06:58:49 UTC

Re: Iterating over a Collection of Collection of Bean

Try this...

<logic:iterate id="category" name="categoryList"
type="org.teulings.knowhow.bean.Category"
property="property_of_X_that_is_a_list">



Tim Teulings wrote:
> 
> Hello!
> 
> I want to display a property in my *jsp that is of type Collection
> (LinkedList) of Collection (LinkedList) of Bean - in principle a two
> dimensional matrix of Beans.
> 
> I tried to use some code like
> 
> <logic:iterate id="categoryList" name="categories"
> type="java.util.LinkedList">
> X
>   <logic:iterate id="category" name="categoryList"
> type="org.teulings.knowhow.bean.Category">
> Y
>   </logic:iterate>
> </logic:iterate>
> 
> but this does not work as the second iterate cannot see the iteration
> variable of the first iterate (categoryList). Using similar "nested"
> tags did not help either. I also look more closer at the "nested"
> tutorials but they assume that I buil dmy datastructure all together
> based on my beans.
> 
> I s there a way to use nested java collections or do I have to fall back
> to building my own beans?
> 
> 
> -- 
> Gru?...
>        Tim.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Iterating-over-a-Collection-of-Collection-of-Bean-tf538426.html#a7352467
Sent from the Struts - User mailing list archive at Nabble.com.


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