cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Smink" <psm...@osirion.nl>
Subject Re: Antwort: Retrieving init parameters via HttpContext in Cocoon2
Date Thu, 21 Nov 2002 09:59:22 GMT
Yes, thanks
it works (if you put it before the servlet tag).
Peter
  ----- Original Message ----- 
  From: michael_hampel@sonynetservices.com 
  To: cocoon-users@xml.apache.org 
  Sent: Thursday, November 21, 2002 8:30 AM
  Subject: Antwort: Retrieving init parameters via HttpContext in Cocoon2



  Hello, 

    For us the following works, in your web.xml you have to specify your 
   parameters like: 

          <context-param> 
                      <param-name>whatever</param-name> 
                      <param-value>whateverValue</param-value> 
                      <description>whatever description</description> 
            </context-param>   

   Then we use context.getInitParameter("whatever") to retrieve a 
   parameter. 

   HTH, 

   miHam

Mime
View raw message