Re: give servlet permission to create file



"tiewknvc9" <aotemp@xxxxxxxxxxx> said:
I just called my hosting company, who say I have all the appropriate
access priviledges...

Which I would rather not believe, but they say its true...
....
Here is what my code reads as:

String curDir = application.getRealPath("");
System.out.println(curDir);

File filFile = new File(curDir + "/pleaseWork.txt");

out.println(filFile.getAbsolutePath());

Well, what do you get printed as the current directory? Does it
look like something to which you should have write access?
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
.



Relevant Pages