Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 9/23/12 12:10 AM, Kiran Badi wrote: On 9/17/2012 10:20 PM, Christopher Schultz wrote: If you instead implemented your own aliases feature using a servlet, you could do it in a smarter way because you understand your own URL space: you

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-22 Thread Kiran Badi
On 9/17/2012 10:20 PM, Christopher Schultz wrote: If you instead implemented your own aliases feature using a servlet, you could do it in a smarter way because you understand your own URL space: you might always know that /images/X will translate directly into /file/place/on/the/disk/X and you

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 9/13/12 8:24 PM, Kiran Badi wrote: On 9/13/2012 8:13 AM, Christopher Schultz wrote: Large sites will use a single URL that ends up resolving the images from some kind of data source. That data source might be a disk (e.g. you could

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-13 Thread Vishwanath Washimkar
Chris I like your approach. Thanks all I learned the tomcat context concept from your guys...need to look into it. Vishwanath On Thu, Sep 13, 2012 at 8:13 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 9/11/12 10:44 PM,

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-13 Thread Kiran Badi
On 9/13/2012 8:13 AM, Christopher Schultz wrote: Large sites will use a single URL that ends up resolving the images from some kind of data source. That data source might be a disk (e.g. you could forward to the DefaultServlet) or a database (relational or otherwise) where you would write your

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 9/11/12 10:44 PM, Kiran Badi wrote: On 9/8/2012 4:09 PM, Konstantin Kolinko wrote: Regarding the aliases feature: single path - multiple file paths: No multiple different non-intersecting paths - multiple file paths: Yes As far as

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-11 Thread Kiran Badi
On 9/8/2012 4:09 PM, Konstantin Kolinko wrote: Regarding the aliases feature: single path - multiple file paths: No multiple different non-intersecting paths - multiple file paths: Yes As far as I remember, an example of using multiple aliases is present in documentation. Thanks Konstantin,

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-11 Thread Konstantin Kolinko
2012/9/12 Kiran Badi ki...@poonam.org: On 9/8/2012 4:09 PM, Konstantin Kolinko wrote: Regarding the aliases feature: single path - multiple file paths: No multiple different non-intersecting paths - multiple file paths: Yes As far as I remember, an example of using multiple aliases is

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-08 Thread Konstantin Kolinko
2012/9/8 Kiran Badi ki...@poonam.org: Hi Chris and All, I hope its alright if I reopen my old thread since I want to expand my earlier requirement. I have a requirement where for each category I need to have separate folders where the Images should go in. Currently for all categories my

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-08 Thread Kiran Badi
Thanks Konstantin, I will check this and revert back. On 9/8/2012 4:09 PM, Konstantin Kolinko wrote: 2012/9/8 Kiran Badi ki...@poonam.org: Hi Chris and All, I hope its alright if I reopen my old thread since I want to expand my earlier requirement. I have a requirement where for each

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-07 Thread Kiran Badi
Hi Chris and All, I hope its alright if I reopen my old thread since I want to expand my earlier requirement. I have a requirement where for each category I need to have separate folders where the Images should go in. Currently for all categories my images goes into the C://UploadedImages

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/5/12 1:31 AM, Kiran Badi wrote: After playing around for a day, this is another solutions which worked for me, Context aliases=/UploadedImages=c:/UploadedImages/Context with Tomcat 7.0.11 in context.xml Good, except that you

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-05 Thread Kiran Badi
On 6/5/2012 7:41 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/5/12 1:31 AM, Kiran Badi wrote: After playing around for a day, this is another solutions which worked for me, Context aliases=/UploadedImages=c:/UploadedImages/Context with Tomcat

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-04 Thread Kiran Badi
After playing around for a day, this is another solutions which worked for me, Context aliases=/UploadedImages=c:/UploadedImages/Context with Tomcat 7.0.11 in context.xml I think now I understand as how aliases work, /UploadedImages is the aliaspath and c:/UploadedImages is the docbase to

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-01 Thread Christopher Schultz
-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

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-01 Thread Kiran Badi
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

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-31 Thread Kiran Badi
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

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-30 Thread Kiran Badi
On 5/29/2012 8:15 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 5/28/12 6:38 PM, Kiran Badi wrote: I am using Tomcat 7.0.11 Upgrade. http://tomcat.apache.org/security-7.html Yup, I already have 7.0.27 and this one is tied with netbeans and I really

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 5/28/12 6:38 PM, Kiran Badi wrote: I am using Tomcat 7.0.11 Upgrade. http://tomcat.apache.org/security-7.html and environment is win 7 home premium with servlet/jsp/jstl with netbeans 7.01 I have form where in I upload the image to

Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-28 Thread Kiran Badi
Hi, I am using Tomcat 7.0.11 and environment is win 7 home premium with servlet/jsp/jstl with netbeans 7.01 I have form where in I upload the image to the folder C://xx using apache commons file upload and then store the file name to the DB.Everything is good till here. Then when I want