From a servlet, how do I access files and directories on the client's file system?

Erik Runia

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.

[See also Files:Downloading subtopic]

[It's not simply a security issue -- it's more basic than that. The servlet runs on the server; it can only send and receive data to the client via HTTP. HTTP only allows simple file transfer operations -- no arbitrary remote access. -A]