title: getting eclipse project absolute path (in web application using tomcat server)
body: <p>i'm trying to get the absolute path of my eclipse project : 
  so i write this; </p>
  
  <pre><code>   File file= new File("");
     System.out.println(file.getCanonicalPath());
     projectPath=file.getCanonicalPath();
  </code></pre>
  
  <p>so it gives me the right path  when i execute it in a class as java application  <code>C:\Documents and Settings\Administrateur\Bureau\ready code\JavaServerFacesProject</code></p>
  
  <p>But when i try to use it in my  web application it gives this :</p>
  
  <p><code>C:\Documents and Settings\Administrateur\Bureau\eclipse\eclipse</code></p>
  
  <p>So any idea how to do it 
  Many thanks </p>