cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kuznetcov Konstantin <kaospost...@gmail.com>
Subject Accessing tomcat servlet context parameters in sitemap
Date Sun, 25 Apr 2010 15:45:53 GMT
Hi!

I have user-defined parameter 'redirectURL' in tomcat servlet context 
and need to use this parameter in my sitemap.
I can modify ROOT.xml, but there is no opporunity to store this 
parameter somewhere outside of tomcat's server configuration.

My ROOT.xml in tomcat looks  like
<Context docBase="../apps/myWebapp">
     ...
<Parameter name="redirectURL" value="http://host.com/someURL/" 
override="false"/>
</Context>

The sitemap contains section for this redirect, but it {redirectURL} 
doesnt get any value

<map:match pattern="redirected">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:redirect-to uri="{redirectURL}{requestQuery}"/>
</map:act>
</map:match>

Please help me to make my sitemap work.

--
Regards, Konstantin

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


Mime
View raw message