• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tree in Servlet

 
Ann Toh
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Does anyone know how to write tree in servlet program?? i wan to display a tree on a particular directory. My program works like this: different users will have their own directory, so it will display the tree according to their directory. If can, can show me an example...
Thanx in advance...

[ September 30, 2003: Message edited by: Ann Toh ]
 
Ann Toh
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anyone tell me whether inside the servlet, can i hav JTree??
Thanx in advance...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JTree is used for display in a Swing environment - with a servlet you can only write HTML to be displayed on the user's browser. If you want an active tree display on the user's browser you will have to use something like JavaScript or an applet. In an applet you can have a JTree if the user's browser has the Sun JVM, otherwise not.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic