Getting absolute path of a file in a webapp without using servlet/JSP
Getting absolute path of a file in a webapp without using servlet/JSP
[76 byte] By [
Deepu_pa] at [2007-11-26 17:15:56]

I use the following to find the directory src in the WEB-INF/classes directoryfinal URL root = getClass().getResource("/src");
final File rootFile = new File(root.getFile());