• Post Reply Bookmark Topic Watch Topic
  • New Topic

Viewing Folder of local file system

 
Anabil Laal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are developing a file sharing site,with concept of users and admins using servlet 2.5,jsp and jdbc. We have implemented the file upload/download part via servlet. A user should see his uploaded files and folders in the site. But we are stuck in implementing folder level view via servlet. We maintained a add_file db table in pl/sql and retrieved file details uploaded by particular user only. But, we have to show folders also,which we are unable to show.
I came across an easy solution of changing web.xml of apache tomcat 6.0 , but it would enable every user to see inside every folder and files,it will not depend upon database. But we have to show those on basis of databases only. Any way to achieve this ?

1. UploadedFileView.jsp




DownloadServlet.java

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I interpret the following:
But we are stuck in implementing folder level view via servlet. We maintained a add_file db table in pl/sql and retrieved file details uploaded by particular user only. But, we have to show folders also,which we are unable to show.


to mean that you need an extra level of detail in your db table giving the "folder" each file lives in. What keeps you from adding that?

Bill
 
Anabil Laal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have already implemented that folder id by which we would sort the files according to folder. But, we are unable to show it in the jsp page . The jsp page should show files as well as folders and we can navigate thorogh folders .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!