cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: Bug in cocoon.context.getInitParameter?
Date Thu, 19 Feb 2004 21:07:24 GMT
Ugo Cei wrote:

> 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



Mime
View raw message