How do I find out Tomcats home directory from inside a running servlet?
Location: http://www.jguru.com/faq/view.jsp?EID=416016 Created: May 5, 2001 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by frederi barachant (http://www.jguru.com/guru/viewbio.jsp?EID=117062 When Tomcat is executed (and you can check both tomcat.sh and tomcat.bat in the tomcat’s bin directory) the property ‘tomcat.home’ is set using -D. This means that you should be able to access it using System.getProperty(“tomcat.home”).
Related Questions
- What type of CAL will a non-active directory device using Outllok Web Access need when we are currently running Windows Server Device CALs and Exchange Server Device CALs?
- Is it possible in Tomcat to allow running all servlets from a directory without configuring each one in web.xml ?
- How do I find out Tomcats home directory from inside a running servlet?