You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chaikin, Yaakov Y." <YA...@saic.com> on 2004/10/27 17:55:19 UTC
Recursive iteration
Hi,
I am hoping there is a simple way to do this, but can't find anything in the
docs. I have an object that has a "has-a" relationship with itself.
Basically, it's like a folder explorer, i.e., a folder can have one or more
folders under it. Each of those folders can have one or more folder under
them and so on.
I need to dynamically display all the folders starting from the root.
I looked into the logic:iterate, but it seems it only supports looping
through top level collection. I need to recursively go through the entire
collection.
Does anyone know how to do this using struts/jstl tags?
Thanks,
Yaakov.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org