Hi Sebastain, There are probably many ways of doing this (I don't know of any "standard" way though). Here's some code which i use to populate a Properties object from a file:
String xpdlPropertiesFileName = "xpdl.properties"; //file should be in the class path.. InputStream is = null; ClassLoader loader = Thread.currentThread().getContextClassLoader(); is = loader.getResourceAsStream(xpdlPropertiesFileName); //read the properties.. if (!initialized ) { if (is != null) { processVariables = new Properties(); processVariables.load(is); initialized = true; } else log.error("Aaaarrgghhh!! xpdl.properties file dne!!!"); } Regards, Geeta Sebastian Stein <[EMAIL PROTECTED]> wrote on 12/08/2005 04:45:15 PM: > Hi, > > I have a config file in WEB-INF/classes/ directory. This file has the > information for database connection. How can I make this file accessible in > all Action classes? I guess there must be a unified way to access such a > file. > > > Sebastian >