tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers
Date Fri, 01 Jun 2012 15:57:17 GMT
Hash: SHA1


On 5/31/12 10:37 PM, Kiran Badi wrote:
> Ok I did it this way in TC 7.0.27 as I decided not to touch
> Netbeans setup with 7.0.11( I had messed up TC7.0.11 after doing
> several trial and error stuff,felt real pain)
> I have TC7.0.27 running as window service which I use it deploy my 
> latest build everyday.
> In server xml, I added below context between host tags
> <Context path="/myapp/UploadedImages" docBase="c:\UploadedImages" 
> reloadable="true" crossContext="true" />

You shouldn't put <Context> elements in server.xml. Also, using a
docBase that has files appear at random can be problematic when it
comes to caching, etc. and users often have problems.

> so I did not use aliases at all, is this good solution or I am
> missing something again.

Presumably you have an existing webapp that does the upload part: make
C:\UploadedImages into an "alias" for that webapp instead of creating
a second webapp for it.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message