give servlet permission to create file

J

Juha Laiho

tiewknvc9 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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top