Use system properties.

<Context crossContext="true" docBase="${web.dir}rest_of_path"

Then start tomcat with JAVA_OPTS=web.dir="/my/dir"


-Tim


Shirode, Sangita (Sangita) wrote:
Hi,
I need to set one of the parameter in the xml configuration file to the
environment variable + some text.
eg.
<?xml version='1.0' encoding='utf-8'?>

<Context crossContext="true" docBase=$WEB_DIR"rest_of_path"
path="alias_path" reloadable="true">

</Context>

where $WEB_DIR is an environment variable.
How can I acheive this?
Thanks,
Sangita



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to