I'm creating a small site which uses a servlet to query a directory on my hard drive for any images that are there and display links to those images. I obviously can't link to "C:\Folder\ImageName.jpg" when displaying the image, because when the web browser looks for that file, it's actually looking on the client's machine. So right now I have all of the images in "Tomcat 5.5/webapps/ROOT/images/". The goal of the servlet is to be able to just drop a picture in a directory and have the picture show up in the browser without reinstalling the web application. The problem is that, like a good programmer, I have a separate directory where I set up my web files and classes, then I use ANT to install the application to Tomcat. This means that any pictures I want to display need to be put into the separate directory, then my application needs to be re-installed with ANT. I know I need to reinstall the application when I change class files and web files, but if I want to just drop in another picture, I don't want to have to do that. Is there a way to get around this? Am I making any sense?
So, basically, is there any way to put needed files in a directory other than "Tomcat 5.5/webapps/ROOT/." and still have them be accessable from the client side?