Web tier: servlets, JSP, Web frameworks: how to call insert statement after popup message.

  1. Hi, I'm trying to call an insert statement after the download is complete. I'm using download link to call the tiff image. I now want to register the downloads in the database. however if i click the download link the dialog box message popups for me to save or open. i want the insert statment to be called after this events. is that possible? please help
  2. use your own downloading like http://www.servletsuite.com/servlets/dloadtag.htm and add your insert statement to the same JSP page.