tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Badi <ki...@poonam.org>
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 23:15:23 GMT

On 6/1/2012 9:27 PM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Kiran,
>
> 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.
Kiran : I had never thought about caching , and  caching is one of key 
features which I am planning to implement.
>> 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.
Ok I will give try to create alias and see how it goes.

Thanks.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk/I5l0ACgkQ9CaO5/Lv0PCtJwCgrGbdhRjeSetyRz8Zr3Bvzkt0
> mU0AnidgFANsdy8ZFNoo8/SPLCCY11+E
> =7Q6w
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message