tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <>
Subject Re: Make uploaded files survive to re-deploy
Date Fri, 04 Jul 2008 16:14:38 GMT

----- Original Message ----- 
From: "Caldarale, Charles R" <>
To: "Tomcat Users List" <>
Sent: Friday, July 04, 2008 5:39 PM
Subject: RE: Make uploaded files survive to re-deploy

> From: Johnny Kewl []
> Subject: Re: Make uploaded files survive to re-deploy
> We us the Apache web server as well, and we dump image
> files to that....

That adds unnecessary complexity and impacts performance for dynamic 

> > If I use an external directory, it would be difficult
> > to make those files accessible to the webpages...

It's not really difficult.  Define a <Context> element for an additional 
webapp that targets the external directory via a docBase attribute, and 
place that <Context> element in conf/Catalina/[host]/[newAppName].xml; use 
something like "images" (without the quotes) for [newAppName].  Tomcat's 
DefaultServlet will happily retrieve and display images or other static 
content from there when referenced via 

 - Chuck

Yes, the above is also good ;)


Hi Chuck... always giving me a hard time... was actually just thinking, 
where the #!# is Chuck ;)
Anyway... please have a look at this other thread as well..... Re: Tomcat 
5.5.25 freezes
Guys are struggling and I dont know what the problem is.... give em some 
more idea's to try.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message