title: Get absolute path of "web content" folder in Java
body: <p>I want to get the absolute path of <code>Web content</code> folder in source code so I can retrieve another folder to upload file. </p>
  
  <p>I tried <code>ServletActionContext.getServletContext().getRealPath("images")</code> to get the folder image in source code.</p>
  
  <p><strong>Expected result should be</strong>:</p>
  
  <blockquote>
    <p>"C:\Learning\Workspace\Eclipse\boxingsaigon\WebContent\images".</p>
  </blockquote>
  
  <p>But it returns me where the web was deployed: </p>
  
  <p><strong>Actual result is</strong>:</p>
  
  <blockquote>
    <p>"C:\Learning\Workspace\Eclipse.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\boxingsaigon\images".</p>
  </blockquote>
  
  <p>Is there any way to do this?</p>