Total members 9946 | Gratitudes |It is currently Thu Feb 09, 2012 3:07 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 5 posts ] 
Author Question
 Question subject: Display data from database as Tree Structure in JSP
PostPosted: Wed Oct 22, 2008 1:04 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

hi all,

i need some examples where ,i can extract data from database and
display that data as tree in jsp (as parent and child relation).


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Display data from database as Tree Structure in JSP
PostPosted: Wed Oct 22, 2008 1:06 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
U can use JDBC API to extract the data from the DB and create beans for
indivdual records.
then tracking the parent child relation ship we can create tree structure

SAX or DOM model can be used for converting XML structure to Java object and
vice versa

or
One More option is to use Gwt(Google Web Toolkit) .It is Quite helpful To
dispaly data.


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Display data from database as Tree Structure in JSP
PostPosted: Sat Jan 31, 2009 7:42 am 
Offline
Newbie
User avatar

Joined: Thu Jan 29, 2009 12:33 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
AnswerBot wrote:
U can use JDBC API to extract the data from the DB and create beans for
indivdual records.
then tracking the parent child relation ship we can create tree structure

SAX or DOM model can be used for converting XML structure to Java object and
vice versa

or
One More option is to use Gwt(Google Web Toolkit) .It is Quite helpful To
dispaly data.


Could you post one example/code for create tree structure from database using jsp.
Thanks in advance.


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Display data from database as Tree Structure in JSP
PostPosted: Sat Jan 31, 2009 1:02 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2103
Location: Earth
Has thanked: 39 time
Have thanks: 56 time
do you have any database example that follow the tree structure.

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Display data from database as Tree Structure in JSP
PostPosted: Thu Jun 18, 2009 2:24 pm 
Offline
Newbie
User avatar

Joined: Thu Jun 18, 2009 2:15 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
I have this trouble too,
my database table structure is like this

create table business_unit(
business_unit_code varchar(10),
business_unit_name varchar(50),
business_unit_parent varchar(10),
business_unit_manager varchar(50),
description varchar(100)
)

and the data will be like this :

00001 Root - - root
00002 Head Office 1 00001 Erric Western this is head office
00003 Head Office 2 00001 Maybeline this is head office
00004 Regional 1 00002 Jonny
00005 Regional 2 00002 Belly


how to create tree for this data ? someone please help me...


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 5 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 database contents display in table format in swing  GUI  subho07  4
 Data Encryption Standard (DES)  Finished Projects  msi_333  13
 How to make PHP form data saved into txt file  PHP  Radu  6
 charm algorithm in data mining  Java  Anusha123  3
 Des java Applet ( Data Encryption Standards )  Java  msi_333  1

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team