Then you'll need to place all your images in a special directory that doesn't serve images directly. Then you'll need a servlet to determine if the image may be served - then serve the image.

Or the *much* easier solution is to write a Servlet filter to determine if the image may be shown.

-Tim

Kristian Hellquist wrote:
Hi!
I'm developing a "administration" application for uploading pictures. The pictures should be able to get rewied by users of the administration and then be "published" to the public domain (Internet). One easy way to achive this, would be to change the read-permissions of the file depending of what state the picture has. If the picture not yet has been "published" only administrators can download the file, and when the picture (file) get published the all users are able to download the file. You get the point :)


Any ideas to achieve this? If it is possible, only one process of tomcat should be running. Copying files to different directorys depending of state is not allowed. And yes, I'm a tomcat newbie...

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to