We always ask how far you've gotten and where you are stuck. Do you know how you want to make a tree in memory? Look in the JavaDoc for TreeNode and see if that gives you some ideas. How is the tree stored in the database? That will make a lot of difference when it comes time to load it.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
R .sourav nayak
Joined: May 14, 2006
hi, thanks for the replay.on the database data's are stored in toplevel,sublevel and the leafnodes related to sublevel. In my java code i am able iterate through the node and leaf nodes. but i am having a problem string that in a list and bringing that to my jps page in a tree structure way. below is my cod e.
could you tell me how do i temporarily store it in a list after each iteration and call that on my jsp altogeter.
thanks in advance
Joined: Jan 29, 2003
I think you're missing a bit to add each new child to its parent. I'm going to use generic Nodes because I'm not sure I understand your data fully. Let's say a Node has an Object that we're interested in and a collection of children.
Now your JSP (or some other code) can walk the object graph from Root on down. Does that make sense?
BTW: You can write the for loop one line shorter:
[ November 15, 2007: Message edited by: Stan James ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com