Display image in JSP
Hi,
I'm having problems allowing users to upload images within my j2ee application and then displaying them again. Does anybody have any tips?
I don't really want to store the image in the db (just the image name), but I can't figure out where to put the image once it has been uploaded so that the JSP page can find it again.
All of my current images are inside my .war file so I can't simply add the uploaded image to these. I'm using JBoss 4.0 if it matters....
Your help is greatly appreciated,
Stu.
[546 byte] By [
_DuRdEn_a] at [2007-10-3 4:41:18]

Hi.
Probably not the best solution, but I've solved this by creating one war file that only holds images. It only has an empty jsp index file.
I use a Unix workstation, so I've creted a symlink, (shortcut) from the folder I uppload images to, to the empty project. Then I can call the images from the jsp, and deploy new versions of my main application without the images....
Thanks for the reply.That's a good idea, I'd never have thought of that! Now the inevitable question.... Do you know if I can do this on Windows?Cheers,Stu.