I am developing a common artifact that can be used in multiple web applications. The developers will just have to add my listener class to their web.xml. In my listener, I have a need to get the web application name that my code is running under.
Although getServletContextName() will give a name, this name is the display-name coded in web.xml. I think display-name is optional so it is not reliable. So I would like to get the actual web application name. Is there a way to do this?
Thanks for looking.