Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Open pdf file

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After clicking the link on the file name on jsp, the control goes back to servlet, the servlet authenticated the user and its role, then opens the pdf file. Can anybody help me, how to open the pdf file in adobe reader and after closing the adobe reader the control goes back to the jsp where link was clicked. Thanks David.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The web app can't control which application is used to open the file on the client. It just provides the MIME type, and then the user gets to choose the application. For PDFs, most often that will be Acrobat, but it could also be something like Preview (on OS X). If the file has features only Acrobat supports (like filling in forms), you should mention that next to the download link.

You can't control what happens after the viewing app is closed. The user may have switched to other applications in the mean time anyway, and will get back to the web app when it's convenient to her. What is the purpose of wanting to control this?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Open the link in a new window.
 
David Dhune
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It was decided that to open the pdf in new window and no control constriants. Thanks for the inputs. David
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic