wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tree problem
 
Similar Threads
Storing a tree structure in a relational database..
Hibernate:Eager fetching
Is it possible to select across multiple rows into the same result?
Tree structure retrieval from Database
Showing PLUS sign(tree expansion) even if child is not present