There are several ways of doing this,
1) You can make your files available through FTP, where your files sit on some FTP server and users can use FTP client to pull them.
2) You can host on a HTTP Server and users can use HTTP to get them.
3) Since you posted this in
Servlets forum, I believe you may want to more than just providing files to users. If this is the case, one simple approach is to drop the files in webcontent folder ( not under WEB-INF)and you can provide links like
http://<<server>>:<<port>>/<<root>>/<<file name>>
For eg, if you have a structure like below
then your link will be
http://localhost:8080/SampleWeb/files/file.pdf
but with this approach, all the files outside WEB-INF are accessible to any one. That is they are public. You may have to restrict access explicitly.
But if you wish to drop them under WEB-INF, then they are not directly accessible and the approach is to implement file download servlet. There are several examples available. Look for Multi part file transfer servlet examples.