How to get current working directory for struts2 web application?
String currentDir = System.getProperty("user.dir");
String currentDir = new File(".").getAbsolutePath();
return /usr/share/tomcat
.
I need path to web application, so I could read a file from war.