Hi,
I have a dynamic web web project, and in it I have a class that has some simple static methods, one of which is to read params from a config file.
In the utility class, which is located under the source folder under com.somepackage, I create a new file object:
Code:
File configFile = new File("config/config.xml");
When I run it, I get a null pointer...it says the file location doesn't exist.
The config folder is under WebContent.
I've tried various things; WebContent/config/config.xml, ./config/config.xml, etc...
What's the best way to grab that file?
thanks!
bp
Bookmarks