View Single Post
  #1 (permalink)  
Old 05-16-2008, 05:59 AM
sunkaras sunkaras is offline
Member
 
Join Date: May 2008
Posts: 1
sunkaras is on a distinguished road
Handlinh pdf open ,save,cancel in jsp
Hi

I am looking for a code to handle the pdf popup window save,open,cancel events.the popup window is open but i need to capture those events to update the value in the data base wheather the file is new or downloaded.so can anybody help me out.when i select open or save buttons the pdf file will be download but at the same time based on the button ,i want to update the pdf status in database.

response.setContentType("application/pdf");
response.setContentLength((int)f.length());
response.setHeader("Content-Disposition", "attachment;filename=\"" + f.getName() + "\"");
Reply With Quote
Sponsored Links