Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Explorer File Directory Tree Structure

Status
Not open for further replies.

sorcha999

Programmer
Jul 23, 2002
14
US
I am very new to Java and was given the task of creating an explorer type file structure. I need it to display within a browser, be able to click on the folder and see the subfolders and files with.

I am able to display the file structure of a folder within the mounted filesystem but not outside of it. Is there a way this can be done?
 
Pray tell which technology you wish to use ? JSP/Servlets, Applets, or maybe something else ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Well you can only use JSP to generate a file system view of the server - not the client. To do the client, you will need an applet.

For a JSP view of the server, you are best off using JSP to generate a DHTML tree (HTML, CSS & JavaScript).
Basically, you would use the java.io.File class to rip through the directory structure on your server, and create the appropriate HTML/Javascipt code as you go.

Not sure what you mean by "file structure of a folder within the mounted filesystem but not outside of it" - if you cannot see a file system from the server, then it makes it very difficult to create a file system view !



--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top