Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Popup window from action class

Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jsp page contains a print button. When the this button is clikced
control is passed to an action class which generates a pdf file. If the pdf fileis successfully generated i need to open it in a new ie window conatining the pdf. ie the control should go to the popup window from action class and the page (where the print button is)shouldnot get reloaded also. how do i pass the control to a popup from an action class??

Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you want your "popup window" to look like? If you want just a standard Acrobat window then that is pretty straight forward. You stream the document back on the response, return null from your action, and the user sees a message like "Save or Open?" If you have a custom window then it is generally easier to popup a window that calls the action rather than popup the window after the action has executed.

- Brent
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

you can use; in the javascript function of your jsp
    Bookmark Topic Watch Topic
  • New Topic