You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antony Quinn <aq...@ebi.ac.uk> on 2006/06/15 13:07:52 UTC

Access to Parameter values in context descriptor

Hello,

I have to deploy my Cocoon apps as unpacked WARs with context 
descriptors [http://tomcat.apache.org/tomcat-5.0-doc/config/context.html].

I would like make a single WAR file and configure it with two different 
context descriptors, one for a demo version of the site and another for 
the live site with "real" data and authentication/authorisation.

The context files would look something like this:

<Context path="/demo" displayName="Demo" docBase="/path/app.war">
   <Parameter name="servers"
              value="file:///path/demo-servers.rdf"
              override="true"/>
   ...
</Context>

<Context path="/live" displayName="Live" docBase="/path/app.war">
   <Parameter name="servers"
              value="file:///path/live-servers.rdf"
              override="true"/>
   ...
</Context>


How do I get access to the Parameter values in the Cocoon sitemap? Do I 
have to write my own action? Should I use another method, such as 
Environment variables?

Cheers,

Antony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org