Re: Tree display in JSP page

2006-04-09 Thread Laurie Harper
As a simpler alternative, you could create a custom tag handler or a JSP 2.0 tag file that knows how to render a tree node and invoke itself recursively as necessary to render child nodes. You could even use a JSP include and not bother with custom tags / tag files at all. As long as you have y

RE: Tree display in JSP page

2006-04-06 Thread Richard Allwood
You can create a Iterator class that traverses the tree structure. If you need to display the tree structure in the JSP page then the Iterator will need to maintain enough information about depth traversed/siblings to ensure that the tree structure can be rendered for each value iterated through.