Doing some work when an image is requested

2002-05-14 Thread Ben Rometsch
Hi there, I dont think this has been asked before...Apologies if it has. I want to trigger Tomcat (4.0.3) into doing some work (writing a record to a DB, so ideally I want to execute a javabean method) when a specific image is requested. Is there any way of doing this? Many thanks, Ben

Re: Doing some work when an image is requested

2002-05-14 Thread Simon Stewart
On Tue, May 14, 2002 at 12:42:31PM +0100, Ben Rometsch wrote: Hi there, I dont think this has been asked before...Apologies if it has. I want to trigger Tomcat (4.0.3) into doing some work (writing a record to a DB, so ideally I want to execute a javabean method) when a specific image

RE: Doing some work when an image is requested

2002-05-14 Thread Ben Rometsch
Hi There, Sorry - could you explain a little further? I'm not quite sure where you're coming from... Many thanks for the reply, Ben -Original Message- From: Simon Stewart [mailto:[EMAIL PROTECTED]] Sent: 14 May 2002 13:14 To: Tomcat Users List Subject: Re: Doing some work when

Re: Doing some work when an image is requested

2002-05-14 Thread Simon Stewart
Basically, you can define a class that does the work that you want done, and make it implement the java.servlet.Filter interface. Then in your web.xml file, you'll need some fragments like: filter filter-nameimageFilter/filter-name filter-classImageFilter/filter-class /filter