Andre Prasetya wrote:
lets say that i have a war named dodol.war, if i deployed to tomcat, it will
be deployed to /dodol rite ? is it possible to get the path '/dodol'
programatically ? I am thiking of putting a configuration file outside
tomcat lets say at /opt/server/gateway/config and the file name will be the war name and an extension. So at this example, the configuration file will
be /opt/server/gateway/config/dodol.xml

is this possible ?
Not with servlet spec 2.4. Tomcat 6 will implement spec 2.5 and one will be able to get context path in ServletContextListener.

http://www.javaworld.com/javaworld/jw-01-2006/jw-0102-servlet.html?page=6

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

  • Context Path Andre Prasetya
    • Re: Context Path Mikolaj Rydzewski

Reply via email to