m: David Delbecq [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 05, 2006 2:19 PM
>To: Tomcat Users List
>Subject: Re: web app application name
>
>
>
>asaf.lahav wrote:
>
>
>
>>
>>
>>
>
>
>
>
>
display name may be changed and not reflect the actual web
application name.
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 2:19 PM
To: Tomcat Users List
Subject: Re: web app application name
asaf.lahav wrote:
>
>
> How can
That won't work in a context listener. Servlet Spec 2.5 includes a
servletContext.getContextPath(), but Tomcat only implements 2.4 (not
sure when the new Tomcat is slated for release).
I struggled with the same thing a few days ago, trying to have log4j
stream to a file named for the context when
asaf.lahav wrote:
How can I obtain the name of the web application name my listener servlet is
running under in Java?
request.getContextPath();
Greetings.
-
To start a new topic, e-mail: users@tomcat.apache.org
To uns
AFAIK, it depends on the listener. Listeners implementing
ServletRequestListener can retrieve it from the request; for others I
don't see a clear way.
--David
asaf.lahav wrote:
How can I obtain the name of the web application name my listener servlet is
running under in Java?
How can I obtain the name of the web application name my listener servlet is
running under in Java?