• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Popup window from action class

 
Greenhorn
Posts: 10
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??


Thanks
Anu
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

you can use window.open(link); in the javascript function of your jsp
 
reply
    Bookmark Topic Watch Topic
  • New Topic