You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Davie <ta...@student.cs.york.ac.uk> on 2003/05/16 15:16:55 UTC
Current Working Directory
Hi,
I'm writing an java servlet using tomcat as my server. I have been
having some problems with the current working directory. It would
appear that if I use relative pathnames at any point in my app they are
relative not to the directory that my app is in, but instead they are
relative to the directory from which I start tomcat. e.g. one file I
look for is web/Conversion.xsl, if I start tomcat from root, the app
looks for the file /web/Conversion.xsl, if I start it from the tomcat
home directory then it looks in $TOMCAT_HOME/web/Conversion.xsl. Does
anyone know why this behaviour exists and if it is possible to have it
relative to my app instead?
TIA
Bob
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org