While I try to get path of current dir like bellow in my project it gives the location of where eclipse is downloaded.
String Cuurentdir= System.getProperty("user.dir");
I want path of my project dir.
Note- Using tomcat as a server.
While I try to get path of current dir like bellow in my project it gives the location of where eclipse is downloaded.
String Cuurentdir= System.getProperty("user.dir");
I want path of my project dir.
Note- Using tomcat as a server.
String workingDir = (File)servletContext.getAttribute(ServletContext.TEMPDIR);