I want to be able to access a folder from my tomcat webapps folder so that I can give someone a URL like:
http://localhost:8080/myFolder/myFile.f
And in a web browser if they point to this they should start downloading the file.
But in reality I get a 404 error when I try to point to this location.
How can I solve this or get around it.
You can also place the folder inside the default servlet. For your example, the folder would be:
Make your folder a web application: put a WEB-INF folder with a minimal web.xml file into your folder, the web.xml file could look like this:
Then configure Tomcat to deploy the webapp with the URI you want.