Re: saving files in webapp folder from deletion?

2005-09-28 Thread Thomas Corte
Hello, Pham Tran Quoc Viet wrote: Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: Context docBase=absolute path to x soft link path=link name allowLinking=true/ That's it. Everytime the soft link is hit,

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Anto Paul
Read this thread lately. May be antiResourceLocking is what you are lokking for. It is an attribute of Context element. On 9/28/05, Thomas Corte [EMAIL PROTECTED] wrote: Hello, Pham Tran Quoc Viet wrote: Create x outside of webapps and create a soft link within webapps that points to x.

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Thomas Corte
Hello, Anto Paul wrote: Read this thread lately. May be antiResourceLocking is what you are lokking for. I'm afraid not, since it is only useful to prevent files from being locked (to make sure they can be deleted on undeploy). Actually, I'm somewhat looking for the exact opposite, namely a

Re: saving files in webapp folder from deletion?

2005-09-28 Thread [EMAIL PROTECTED]
: Date : Wed, 28 Sep 2005 14:56:55 +0200 Subject : Re: saving files in webapp folder from deletion? Hello, Anto Paul wrote: Read this thread lately. May be antiResourceLocking is what you are lokking for. I'm afraid not, since it is only useful to prevent files from being

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Leon Rosenberg
I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. :-) regards Leon - To unsubscribe, e-mail: [EMAIL

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Thomas Corte
Hi, Leon Rosenberg wrote: I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. You are absolutely right, however I don't like to reinvent the wheel and therefore tend to

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Leon Rosenberg
On 9/28/05, Thomas Corte [EMAIL PROTECTED] wrote: Hi, Leon Rosenberg wrote: I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. You are absolutely right, however I

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Leon Rosenberg
setup X as context/webapp (incl. an empty WEB-INF) and probably a web.xml. this should be sufficent, unless you have something else badly broken :-) lg leon On 9/27/05, Thomas Corte [EMAIL PROTECTED] wrote: Hi there, I have a setup in which certain trusted users of a web application X may

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Thomas Corte
Hi, Leon Rosenberg wrote: setup X as context/webapp (incl. an empty WEB-INF) and probably a web.xml. this should be sufficent, unless you have something else badly broken :-) So you mean I should create a second web app/context Y and put the uploaded files there? If this is the suggestion,

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Pham Tran Quoc Viet
Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: Context docBase=absolute path to x soft link path=link name allowLinking=true/ That's it. Everytime the soft link is hit, tomcat will follow the symbolic link get