You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "D'Alessandro, Arthur" <Ar...@cbetech.com> on 2004/03/18 17:14:59 UTC

RE: Location of "webapp" directory

IF (and this is a big IF) your webapp is expanded, your relative path
then becomes from the catalina bin directory, so

../webapps/webappname/otherpath

Should work, but it's, I've had succes and failures doing this. 

-----Original Message-----
From: Jonathan Melhuish [mailto:j.melhuish@signal.qinetiq.com] 
Sent: Thursday, March 18, 2004 11:16 AM
To: Tomcat Users List
Subject: Location of "webapp" directory

The JSP files for my web application are located within a subdirectory 
of the Tomcat "webapps" directory.  Is there any way to read the 
filesystem location of this subdirectory from within a JSP page?

I would have thought this would be easy, but I haven't managed to find 
anything that does this :-(

TIA,

Jon


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org