Dynamically Determining the Web App

2006-08-09 Thread Kohn, Robert M.
Dear Friends,

I have two web apps that are identical except for their root directory
(and context entry in server.xml).
Is there any way of determining from within a servlet which one is
actually running?
Or, alternatively, is there a way of retrieving values from the
context section of server.xml for the corresponding web app?

Thank you very much!

- Robert Kohn


Re: Dynamically Determining the Web App

2006-08-09 Thread Hassan Schroeder

On 8/9/06, Kohn, Robert M. [EMAIL PROTECTED] wrote:

I have two web apps that are identical except for their root directory
(and context entry in server.xml).
Is there any way of determining from within a servlet which one is
actually running?


ServletContext.getServletContextName() should do it, eh?

--
Hassan Schroeder  [EMAIL PROTECTED]

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