ServletContext.getRealPath("/") works for me.Thanks.
On Tuesday, August 13, 2019, 01:43:35 AM PDT, Mark Thomas
wrote:
On 12/08/2019 23:18, W wrote:
> Hi,
> I would like to find the war file name (for example,
> ROOT##2019-08-12-10-44.war) inside
> ServletContextListener.contextInitia
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Mark,
On 8/13/19 04:43, Mark Thomas wrote:
> On 12/08/2019 23:18, W wrote:
>> Hi, I would like to find the war file name (for example,
>> ROOT##2019-08-12-10-44.war) inside
>> ServletContextListener.contextInitialized() and
>> ServletContextListener
On 12/08/2019 23:18, W wrote:
> Hi,
> I would like to find the war file name (for example,
> ROOT##2019-08-12-10-44.war) inside
> ServletContextListener.contextInitialized() and
> ServletContextListener.contextDestroyed(). So I can send email to admins warn
> them which app is up and down.
>