If I'm going to produce a Web Page using JSP with images (like charts), then what are the best ways to deal with this?
I mean, if it is just plain HTML it is just streamed to the browser. But with images I have to save them somewhere. But when is it safe to erase them? What is the best way to erase them? I mean what would trigger the erase code? Is there way to run some "sweeper" code once in a while that checks if it is ok to erase these files and, if so, does it?