cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Bug in cocoon.context.getInitParameter?
Date Thu, 19 Feb 2004 22:31:09 GMT
Sylvain Wallez wrote:

> 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* ;-)

Huh? So the init-params for the servlet in web.xml are different from 
the init-params in the context? Where do the context ones come from?

Regards, Upayavira



Mime
View raw message