aspose file tools*
The moose likes JSP and the fly likes Tree problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Tree problem" Watch "Tree problem" New topic
Author

Tree problem

fahad siddiqui
Ranch Hand

Joined: Jun 14, 2006
Posts: 85
I have a tree on my jsp. the tree branches to multiple child and so on upto n-level.

Now, a parent can have multiple child but every child must have a single parent. I hope the structure of the tree is understand. its a simple tree.
Every node contains its own id and its parent id.

I want to select a certain sequence of tree. I do this by providing checkboxes. But out of so many trees available, i need the 2 checkbox selections to be on any single sequence of tree.

How do i manage this?

Please ask for clarifications if required and provide a solution.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
You can do this using JavaScript.

Post your code that generates Tree.


My blood is tested +ve for Java.
fahad siddiqui
Ranch Hand

Joined: Jun 14, 2006
Posts: 85
I am not able to post the code . its giving the error of < but is have removed all the "<" from the code
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Post your code between [CODE]tags.
[ October 18, 2006: Message edited by: Chetan Parekh ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tree problem