When you're talking a dataload of over 1 million items every month or so, it gets to be very time consuming and tedious to go behind suppliers to insure their "data" is always correct :-). Unfortunately, its kind of the nature of our business.
At any rate, have an example of how to put a filter on catching these file types and serving it back if it exists; otherwise serve back a generic "not found" image instead? Thanks, Chris -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 5:05 PM To: Struts Users Mailing List Subject: [OT] RE: Rendering Images > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]