This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
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.
 
jQuery in Action, 2nd edition
 
subject: Download page
 
Similar Threads
Location of .tld file
Location of a tld file
File.listFiles...doesn't return the files from the sub directory...
Directory structure issue
Spring security on file downloads