Thanks Leonidas


________________________________
Hi there,


webwork used to have a class that would easily read
external sources like xml files, but i do not recall the class name now. If you 
want to read from simple property files you could use something 
like :

String path = ServletActionContext.getServletContext().getRealPath("");

Properties prop = new Properties();

try {
    // load properties from the class path
    prop.load(new FileInputStream(path
            + "//WEB-INF//classes//ldapconf.properties"));
} catch (IOException ex) {
    ex.printStackTrace();
}


//get parameter param1
String param1 = prop.getProperty("param1"); 

Regards

Reply via email to