aspose file tools*
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
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.
 
 
subject: Download page