title: Path to a file on my JBoss server from a servlet
body: <p>I have a csv file attached to my project on Eclipse and this project have a servlet which is deployed on a local JBoss server for development.</p>
  
  <p>I want to access this csv file and I can using the absolute path on my computer, like this:</p>
  
  <pre><code>CSVExtractor csvE = new CSVExtractor("C:/workspace/myproject/WebContent/data.csv");
  </code></pre>
  
  <p>The problem with that approach is tha it's not portable in any ways. I believe JBoss my supply a method so I can get access to files inside my project but I didn't find it. What would be the prefered method?</p>
  
  <p>PS: I also believe it's a bad practice to put a file like this in my WebContent folder, what's the best way to isolate this kind of stuff from the user?</p>