You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stephan Coboos <cr...@gmx.net> on 2004/05/08 12:50:30 UTC

Re: InitParameters in Cocoon

Anna Bikkina wrote:

>I could put in a properties file but its just one property so didnt know if it 
>does make sense. Well if I cant reach web.xml then I have no other alternate 
>anway.
>
>Anyone else successful trying to get access to initparameters in web.xml?
>
>Thanks,
>Anna.
>
>On Thursday 29 April 2004 06:32 pm, Upayavira wrote:
>  
>
>>Why do you need them there. Can't you put them somewhere else? I've
>>failed before to get hold of web.xml parameters.
>>    
>>
>
>
>  
>
You shouldn't use web.xml to store and retrieve parameters, because 
cocoon is able to work without web.xml! Its better you're using one of 
the input modules: GlobalInputModule, DefaultsModule or 
PropertiesFileModule:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/package-summary.html

Regards
Stephan