Where should configuration files be stored in a web application?
In the meantime, a good technique is to put them in the *root* level of your WEB-INF/classes directory. (e.g. "mywebapp/WEB-INF/classes/config.txt".) Since this directory is automatically on your classpath, you can load the files using
InputStream in = this.getClass().getResourceAsStream("/" + filename); if (in == null) throw new IOException("Resource " + filename + " not found");