title: What is the best place to store a configuration file in a Java web application (WAR)?
body: <p>I create a web application (WAR) and deploy it on Tomcat. In the <em>webapp</em> there is a page with a form where an administrator can enter some configuration data. I don't want to store this data in an DBMS, but just in an XML file on the file system. Where to put it?</p>
  
  <p>I would like to put the file somewhere in the directory tree where the application itself is deployed. Should my configuration file be in the <em>WEB-INF</em> directory? Or put it somewhere else? </p>
  
  <p>And what is the Java code to use in a servlet to find the absolute path of the directory? Or can it be accessed with a relative path?</p>