It is currently Fri Jul 30, 2010 2:00 pm


All times are UTC [ DST ]


Ask on Codemiles community and get answers Free and Fast :

JSP/Servelts codes,JSP/Servelts tricks ,JSP/Servelts faq ,JSP/Servelts answers .and more

Our guest share with us your code snippets , your programming problems , your open source projects ,read articles and post yours .







Post new topic Reply to topic  [ 5 posts ] 
  Print view Previous topic | Next topic 
Author Message
 Post 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  
 
| More
 Post 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  
 
| More
 Post 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  
 
| More
 Post 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: 1573
Location: Earth
Has thanked: 10 time
Have thanks: 16 time

do you have any database example that follow the tree structure.

_________________
Currenlty programming with : java , html , php , and javascript .


TOP
 Profile Send private message  
 
| More
 Post 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  
 
| More
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


 Similar topics
 Topic title   Forum   Author   Replies 
 movie database in Visual Studio  C#  Camz  1
 How can i display these items in Listview in C#?  C#  aprilzoom  1
 General Error: Style data  PHPbb3 support  Blinko  1
 calling method to form- displaying textbox data in messagbox  C#  jackjones2  1
 Data missing when implementing 3DES using DES  General Discussion  echipbk  0

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  





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-2009
mileX v1.0 designed by codemiles team