Hi i am getting path of the context directory in my local system using..
String myfile = application.getRealPath("/");
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...