The Artima Developer Community
Sponsored Link

Java Answers Forum
populating a tree from a database

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
jose luis

Posts: 1
Nickname: joseteforu
Registered: Sep, 2003

populating a tree from a database Posted: Sep 28, 2003 2:37 PM
Reply to this message Reply
Advertisement
Hi all.
I am trying to, using recursion, populating a tree from a database.
The struct of the database is as follows :

name ( char )
depth (int 1)

i.e.
fruits 0
apples 1
red apples 2
milky apples 2
little red apples 3
oranges 1
red oranges 2

and so on ..
My question is, how can i do it ?
I've tried all the ways, but , i always get oranges hanged on little red apples.
Thanks in advance.

Topic: struts-html 'n normal HTML Previous Topic   Next Topic Topic: Java vs C++

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use