Hi,
I am writing a jsp running under Apache/Tomcat in which I try to do some file I/O's:
FileWriter afile = new FileWriter("/a/n/c/d/e/output.txt"
;
Is there anyway to define and use some kind of environment variable under with Apache or Tomcat or even under unix such as:
FileWriter afile = new FileWriter("SOME_PATH/e/output.txt"
;
Right now I write the whole path wherever I need to open a file and it is really cumbersome and I am sure there is a better way of doing this.
Thanks,
Shine
I am writing a jsp running under Apache/Tomcat in which I try to do some file I/O's:
FileWriter afile = new FileWriter("/a/n/c/d/e/output.txt"
Is there anyway to define and use some kind of environment variable under with Apache or Tomcat or even under unix such as:
FileWriter afile = new FileWriter("SOME_PATH/e/output.txt"
Right now I write the whole path wherever I need to open a file and it is really cumbersome and I am sure there is a better way of doing this.
Thanks,
Shine