users@glassfish.java.net

Glassfish: how to get application root (such as Tomcat ${APP_ROOT})

From: <forums_at_java.net>
Date: Sat, 14 Jan 2012 10:31:52 -0600 (CST)

In Tomcat, I can really easy get the phisical path on disk of the root
folder for my application using ${APP_ROOT} variable, or


CommonUtil.getHttpSession().getServletContext().getRealPath("/");

Is there a similar way in Glassfish?


--
[Message sent by forum member 'paolod']
View Post: http://forums.java.net/node/882705