• Post Reply Bookmark Topic Watch Topic
  • New Topic

accessing and displaying local filesystem through servlets

 
Ugochukwu Onwordi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just recently started working with servlets and jsps ,could anyone please tell me how to access the local filesystem of the server the servlet is running in and display a list of the files or folders in it.I want to create a web application that will allow me to do this, but I don't know where to start.please help!!!
[ May 05, 2008: Message edited by: Ugochukwu Onwordi ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseAMeaningfulSubjectLine
EaseUp

Subject lines like this do nothing to describe your question and will annoy a lot of the old timers who are the people most likely to be able to help you.

Also the all caps and repeated "PLEASE HELP" messages have a tendency to turn people off.

Lastly,
Try to pick the correct forum for your question.
You're asking about doing something in JSP in our Servlets forum.


Again, welcome to JavaRanch and good luck with your question.
-Ben

PS: You can edit your original post by clicking on the icon in the top post of this thread.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the java.io.File API.

It has everything you need to do this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!