tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Setting Java property inside a webapp
Date Tue, 14 Nov 2000 19:11:07 GMT
did you try setting the init-param in web.xml e.g.

        <init-param>
            <param-name>my.property</param-name>
            <param-value>1</param-value>
        </init-param>

M--
----- Original Message ----- 
From: "Kaj Kandler" <KajKandler@conficio.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, November 14, 2007 1:07 PM
Subject: Setting Java property inside a webapp


> Hi there,
> I do have a library, that uses a property to determine some
> configuration. As a straight Java program I would call
> 
> java -dmy.property=/my/value ...
> 
> How can I set this property in the context of a tomcat webapp, like in
> the web.xml or context.xml?
> 
> Thanks for the help
> 
> K
> -- 
> 
> *** Technical support for non technical users of OpenOffice.org ***
> *** http://plan-b-for-openoffice.org/                           ***
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

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


Mime
View raw message