title: get absolute path to apache webcontents folder from a java class file
body: <p>Need to get absolute path in java class file, inside a dynamic web application... </p>
  
  <ul>
  <li><p>Actually i need to get path of apache webapps folder... where the webapps are deployed </p></li>
  <li><p>e.g. <strong>/apache-root/webapps/my-deployed-app/WebContent/images/imagetosave.jpg</strong></p></li>
  <li><p>Need to get this in a java class file, not on jsp page or any view page... </p></li>
  </ul>
  
  <p>any ideas?</p>