Some months ago someone raised the issue of file permissions for servlets.
As I recall somebody argued that in ant is possible to specify file permissions.
Looking at the implementation I found that the funcionality was, at the time, 
implemented
spawning a process.
AFAIK it's actually impossible a pure java solution.

Marco

----- Original Message -----
From: "Gardner Monte"
Subject: File Permissions in Servlet


> I have a servlet application that allows users to upload files to
> the Web-Server.  In some cases they may have to upload the same
> file again, thus overwriting the original one.  So, when my
> Servlet reads the file from input and then writes it to the Server
> hard disk, it needs to set the file Permissions in such a way that
> the servlet could later write over or even delete that same file.
>
> How do I set file permisssions to allow reading and writing in
> a Servlet?
>
> (I am using a UNIX/Apache set-up)
>
>
> --Monte Glenn Gardner
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to