You cannot access the client's directory structure using a web application (jsp, servlet, javascript, html) because of security issues. You may need to look into an applet or other client based application, instead of server based.
Ans:2. you can use ListFiles() method with file path as a parameter ..... n you can activate this method against some specifice text using querey string ..... e.g,
if (quereystring=="file path")
f.listFiles("file path")
it would be stored as an array