Results 1 to 1 of 1

Thread: Separate images directory?

  1. #1
    Join Date
    Jan 2005

    Separate images directory?

    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?
    Last edited by QuickSilver002; 01-05-2005 at 09:06 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles