• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implementing tree structure in JSP

 
Ranch Hand
Posts: 419
Mac jQuery Objective C
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic