Hi all,

I studied the entire org.apache.jetspeed.profiler.ProfiledPageContext interface. Now I want to reach to the "root folder". Ultimately I want to create a tree of everything that exists, but from what I can understand after reading the way interfaces are designed, I think I have to go backwards upto the root node, and then start listing each child.

Now to reach the root folder, the best I could come up with is following macro. Would really appreciate if someone can suggest any better method ...

#macro(getRootFolder $folder)
#set($parent = $folder.getParent())
$parent
#if($parent != "/")
   #getRootFolder($parent)
#end
#end

I would again like to mention that with those interfaces, it is really very convinient to list the child elements, and folders and stuff, but I am finding it a little bit tough to traverse my way up the tree to reach the grandest parent ...

Thanks,
Amit



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to