Re: web app application name

2006-07-05 Thread Avi Deitcher
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: > > > >> >> >> > > > > >

RE: web app application name

2006-07-05 Thread asaf.lahav
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

Re: web app application name

2006-07-05 Thread Avi Deitcher
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

Re: web app application name

2006-07-05 Thread David Delbecq
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

Re: web app application name

2006-07-05 Thread David Smith
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?

web app application name

2006-07-05 Thread asaf.lahav
How can I obtain the name of the web application name my listener servlet is running under in Java?