views:

338

answers:

2

My web application requires functionality where end users can upload content, that can be later downloaded or viewed by others, the problem with current scheme is If I create such folder as part of your web project under webapps, every time I do deploy your web application (*.war), the content of that directory will be lost (or overridden).

I think the best way to accomplish that is to create folder outside of standard tomcat webapps and access it from there, not sure how to do. Please point in correct direction.

I am using Tomcat 4.x soon will be moving to 6.x.

-Padur

A: 

I have the same problem.

I am looking at JNDI, LDAP, FTP which I don't know if any would be good for that.

Any professional advise on that would be appreciated.

Thanks.

Jake
A: 

create a folder in some location on your system and add that folder to your classpath. This may solve your problem. You have to store and retrive from this folder at runtime.

Elango