tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "asaf.lahav" <>
Subject RE: web app application name
Date Wed, 05 Jul 2006 15:13:08 GMT
The only solution I found so far is the following:

      String webAppName = event.getServletContext().getServletContextName();


It simply retrieving the display name element
(<display-name>MyAppName</display-name>) defined in the web.xml file.


I would like to know if anyone has a better idea. 

Potentially the display name may be changed and not reflect the actual web
application name. 


-----Original Message-----
From: David Delbecq [] 
Sent: Wednesday, July 05, 2006 2:19 PM
To: Tomcat Users List
Subject: Re: web app application name


asaf.lahav wrote:



> How can I obtain the name of the web application name my listener servlet

> running under in Java?










To start a new topic, e-mail:

To unsubscribe, e-mail:

For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message