tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laicreparc <a597...@jnxjn.com>
Subject Re: 'Parametrizing' context.xml?
Date Wed, 13 Apr 2011 15:38:35 GMT

How can the variable (i.e. here BPVAL be set)? E.g. in server.xml? Is
<context-param> really in context.xml? Looks more like web.xml to me.



Bill Barker wrote:
> 
> 
> "Mario Splivalo" <mario.splivalo@megafon.hr> wrote in message 
> news:4B27994E.5080808@megafon.hr...
>> Bill Barker wrote:
>>> "Mario Splivalo" <mario.splivalo@megafon.hr> wrote in message
>>> news:4B266622.5060806@megafon.hr...
>>>
>>> Tomcat also supports ant-style variable replacement, so using that then
>>> Ken's example would look like:
>>>   <context-param>
>>>      <param-name>baseprefix</param-name>
>>>      <param-value>${BPVAL}</param-value>
>>>   </context-param>
>>>
>>> where BPVAL is a Java system property (that can be set in
>>> catalina.properties for example).
>>
>> And, those can be used also in apps context.xml?
>>
> 
> Yes, this should work in context.xml (and even server.xml).
> 
>>> Of course, this only works for Tomcat.  Ken's suggestion will work on
>>> any
>>> servlet container.
>>
>> Yes, in the long run I'll stick to those, but since we're only using
>> Tomcat for now it would be much easier not to fiddle with ant.
>>
>> Thank you all!
>>
>> Mike 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/%27Parametrizing%27-context.xml--tp26780552p31389193.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message