Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing tree structure in JSP  RSS feed

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am having following directory structure in my application

-archive
-----2008
---------08
-------------16
-----------------Offl_4w_20-Jan-2009.pdf
-----------------Off_4w_20-Jan-2009.xls
-------------17
-----------------Off-Portal_1d_20-Jan-2009.pdf
-----------------Off-Portal_1d_20-Jan-2009.xls
-----2009
---------03
-------------02
-----------------Ch7d_20-Jan-2009.csv
-----------------Ch1d_20-Jan-2009.pdf
-----------------Ch1d_20-Jan-2009.xls


Also shown in attachment. Now I want to show a tree structure of this on the JSP so that User can browse it and download a file. I am not allowed to use any third party api , kindly let me know how should I implement it. Thanks in advance.
structure.JPG
[Thumbnail for structure.JPG]
directory structure
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Java FIle I/O to discern the server file system and construct the appropriate HTML and JavaScript to make the tree work the way you want.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!