T
Taki
Hello,
I have Tomcat 4.1.24 running on my server.
I have modified my conf/server.xml so that
my docBase is not webapps/. So, my
docBase is like:
<Context ... docBase="/home/me/...../myweb" .... >
Now, I have a bean accessing a remote file,
but in the jsp file that locates in the same
directory as "file.txt", it doesn't recognize the relative path
(i.e. File f = new File("file.txt"); and
f.exists() returns false).
Though, if I enter the absolute path,
(i.e. File f= new File("/home/me/..../file.txt")
then it works.
My questions is: if I put the relative path in the
File constructor, where does it point at?
Thanks in advance
Taki
I have Tomcat 4.1.24 running on my server.
I have modified my conf/server.xml so that
my docBase is not webapps/. So, my
docBase is like:
<Context ... docBase="/home/me/...../myweb" .... >
Now, I have a bean accessing a remote file,
but in the jsp file that locates in the same
directory as "file.txt", it doesn't recognize the relative path
(i.e. File f = new File("file.txt"); and
f.exists() returns false).
Though, if I enter the absolute path,
(i.e. File f= new File("/home/me/..../file.txt")
then it works.
My questions is: if I put the relative path in the
File constructor, where does it point at?
Thanks in advance
Taki