title: How to get the path of the context directory in jsp and how can i overwrite it for every new request
body: <p>Hi i am getting path of the context directory in my local system using..</p>
  
  <pre><code>String myfile = application.getRealPath("/");
  </code></pre>
  
  <p>but the method getRealPath("/") is returning null when application is deployed in war file in www.eatj.com..
  can any one provide me possible solution and sample code please...
  The purpose is i have to create a xml file in my context directory...
  and each request i have to overwrite this xml file... </p>