I have this in my web.xml:
<init-param> <param-name>index-directory</param-name> <param-value>/tmp/lucene</param-value> </init-param>
and this in my flowscript:
print("Index dir = " + cocoon.context.getInitParameter("index-directory"));
and it prints:
Index dir = null
Is this a bug or am I missing something obvious?
Yep: I guess you added <init-param> to the Cocoon *servlet* and not to the *context* ;-)
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com
