This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Download page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Download page" Watch "Download page" New topic
Author

Download page

Fortune Almarinez
Greenhorn

Joined: Dec 17, 2003
Posts: 7
Hi All,

I want to implement a download page where it will display a directory. Each directory is the category and directories inside it is its sub-categories. All other files are for download. When the user clicks the subdirectory all files inside that subdirectory will be listed. I'm new to this and I'm asking if you can help me how to implement this. Thanks!


Fortune Almarinez<br />===================<br /> @Java Philippines
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
you don't need to do anything special. It's a serversetting "allow-directory-browsing" or something similar in the server configuration.
Do make sure you enable it only for specific directories and remember you're introducing one hell of a potential security risk.


42
Fortune Almarinez
Greenhorn

Joined: Dec 17, 2003
Posts: 7
I need to present it in WML so I'm forwarding the request to JSP. The user has two options when he click the link either to view or download the movie clips. There is a mapped directory in the webapp.
Fortune Almarinez
Greenhorn

Joined: Dec 17, 2003
Posts: 7
I don't know if it is good design.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Download page
 
Similar Threads
Location of a tld file
Spring security on file downloads
Directory structure issue
File.listFiles...doesn't return the files from the sub directory...
Location of .tld file