> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > That is what I'd like to do. Have an image which is > rendered in the case > when the defined image cannot be loaded. the problem I have > is that our > database record says that an image should exist, but the > manufacturer/supplier didn't provide it to us... thus I need > a way to check > if that image does exist to test that condition.
How often do you get new images? If the data is bad, resist programming around it, and FIX it. (Pet peeve of mine, I've spent hours writing around "issues" that were really training/data entry problems.) Maybe there's a problem with a procedure when new items are added. I'm guessing, of course... I'd be more inclined to keep a closer eye on the logs (which will show the 404's when a non-existent resource is requested) and write a standalone program to run at night daily/weekly/monthly to go through the database and check that each image is where it's supposed to be. I use Apache to serve images and other static resources, leaving the dynamic stuff to Tomcat, but I don't have any idea how to convince Apache to send an alternate image instead of a 404. If I had to do it in Tomcat, I'd map a Servlet to the .jpg file extension, read in the requested image, and either send it or send the 'no image found' image out to the browser. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]