dcsimg
writing to a file
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pp_bb
Posted On:   Thursday, May 17, 2001 11:56 AM

I have a class that is called by the servlet to write to a file in the specified directory that is not public_html and the file doesn't get written. What could be the possible cause. I tried chmod 777 for all the directory that the file will be written in.

Thank you,
Priowan

Re: writing to a file

Posted By:   AlessandroA_Garbagnati  
Posted On:   Thursday, May 17, 2001 12:31 PM

Hi,

Are you sure that the 'tomcat user' (the user that own the tomcat process) has the priviledge to write outside that directory?

Re: writing to a file

Posted By:   D_Srinivasan  
Posted On:   Thursday, May 17, 2001 12:10 PM

Writing to a file should be as easy as using File to open and FileWriter or BufferedWriter to write. What is the exception or problem you are getting? I don't think there is anything in the servlet spec. to prevent writing of files.
About | Sitemap | Contact