RE: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP

2002-10-18 Thread Mathew Pole
Hi Donie, The second half of this is you need to know how to access it: try { Context initCtx = new InitialContext(); String foo = (String)(context.lookup ("java:comp/env/foo")); } catch (NamingException exc) { // oops } Regards, Mathew -- Mathew Pole Web Architect, Gerard Industries

Re: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP

2002-10-11 Thread Raj Saini
Hi Donie, You can define a variable in the global web.xml (in conf directory). This variable should be available to all your applications. This should come at the end of the $TOMCAT_HOME/conf/web.xml file. Though I have not used and tested this (I use for a single application in application s

[HOW TO] - GLOBAL VARIABLES - PLEASE HELP

2002-10-11 Thread Donie Kelly
Hi all Sorry for shouting but I've no hair left so it's the only thing I can do :) Please tell me if it's possible to define a variable in server.xml or somewhere, which is available to all running webapps. I've looked in loads of docs and searched the archive but to no avail. Please please plea