Hierarchical tree diagram on the web

Hi Java Experts:

I'm developing a web based HR application system on J2EE plateforms.
I'm asked to draw a hierarchical diagram of enterprise organizations(departments)
which may look like a Visio diagram.
All child departments should be spreaded horizontally under the parent department
and branch line connections are needed between the related parent-child pairs.
In addition to the department name, depending on the query conditions,
employee names under the department may be needed also.
Note that the tree depth in the diagram may be up to 10,
and physical paper printing may be needed.

I think there may be some acceptable solutions to draw the diagram:
(1) Use HTML Table
(2) Use a java component (bean) to generate a JPG,GIF file and then put it on the JSP.
(3) Generate visio data format files and then use Visio MIME-Type in the JSP.

How do you experts think about it ?
Do you have any good idea ?

Sample programs, hyper links, or documentations are appreciated.

Thanks in advance.

Albert.
LVL 2
AlbertYouAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gdrnecCommented:
You are talking about building a directed graph. There a re a number of ways of doing this but the best solution for an abstract and algorithimic approach is at:

http://www.jgraph.com/

It is open source and well documented
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlbertYouAuthor Commented:

Hi gdrnec, and CodingExpert :

I'v seen and tried your comments.
Finally, I'v decided to work it out with nested HTML tables.

However, I think both of your comments are worth of earning the points.

Thanks a lot.

Albert.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.