RE: How to make Deployed WebApps read-write enabled

2009-03-23 Thread Caldarale, Charles R
> From: Anand HS [mailto:anan...@gmail.com] 
> Subject: How to make Deployed WebApps read-write enabled
> 
> There is some code in the application that writes some 
> temporary files into the my webapp.

That's a really bad idea.  The servlet spec requires that the container provide 
some writable space unique to each webapp, and that's what you should be using. 
 The location of said space is available through the servlet context attribute 
javax.servlet.context.tempdir; see section 4.7.1 of the spec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How to make Deployed WebApps read-write enabled

2009-03-23 Thread Anand HS
Hi,
I use tomcat 6.0.18 on windows 2003 server and have a web-app deployed.
Even though the permissions on the deployed webapp folder has read-write,
everytime i access tomcat , it is making the folder readonly.
There is some code in the application that writes some temporary files into
the my webapp.

Is there any setting in tomcat that will reset readonly permissions for
deployed web aplications. ?

Thanks,
Anand