Re: give servlet permission to create file
- From: Juha Laiho <Juha.Laiho@xxxxxx>
- Date: Sat, 02 Sep 2006 17:51:18 GMT
"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)
.
- Prev by Date: Re: Mixing JSP pages between Apache and Tomcat
- Next by Date: Re: App in the background
- Previous by thread: Re: Mixing JSP pages between Apache and Tomcat
- Next by thread: Bluetooth j2me
- Index(es):
Relevant Pages
|