get path to a file
Posted on 2010-09-09
I have a file which resides under WebContent folder in my web application.
I need to supply the path of this file to a java class under JavaSource in my project.
I know a way to do it in Servlet using ServletContext.getRealPath(), but how do I do this in
a regular java class?