2 Replies Latest reply on Apr 14, 2004 5:37 AM by frocco

    How do I read a properties file in WEB-INF?

    frocco

      Hello,

      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