Hi, I have upload directory for images on my hard disk. I want to access them in HTML image tag. how to access them with respect to application context. As example C:/upload has images and i put my war file in C:/tomcat/webapps. Thanx in advance, Rajan
There are two possibilities: 1. Put the image files where the web server is allowed to serve from - which would be under tomcat/webapps/somecontext and use a src in the image tag that points to that directory. Note that the web server will not normally be allowed to serve files from C:/upload 2. Serve the images via a servlet - in which case the src will have to point to the servlet and include the image file nam. Bill
subject: how to access images that are not in war file???