How do I read a properties file in WEB-INF without hard-coding a path?
843841Apr 13 2004 — edited Apr 14 2004Hello,
How do I read a properties file in WEB-INF without hard-coding a path?
I tried:
Properties properties = new Properties();
properties.load(new FileInputStream("db.properties"));
driver = properties.getProperty("driver");
but it cannot find the db.properties file.
Thanks for the help.
Frank