Results 1 to 2 of 2
  1. #1
    sunkaras is offline Member
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Default 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() + "\"");

  2. #2
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    6

    Default

    Not sure what you mean. The PDF file can be handled by any plugin in any browser. How do you want to capture those events?
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

Similar Threads

  1. Hwlp with "Open", "Save", "Save as..."
    By trill in forum New To Java
    Replies: 3
    Last Post: 11-02-2010, 09:26 AM
  2. How can i save the data Internally(auto save)
    By Rama Koti Reddy in forum AWT / Swing
    Replies: 2
    Last Post: 11-01-2010, 08:31 PM
  3. Replies: 0
    Last Post: 04-04-2008, 02:46 PM
  4. Open "Save Page As" Dialog Box
    By Anubha in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-12-2007, 09:27 PM
  5. Disable BACK and CANCEL buttons in wizard
    By consutes in forum SWT / JFace
    Replies: 2
    Last Post: 11-12-2007, 09:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •