A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Opening content in a new window.
Joined: May 31, 2004
Sep 10, 2004 13:19:00
In my current project, I generate a
(using iText) within my Action class and display it to the user.
What do I have to change so that the pdf is opened in a new window instead of the current one that the user is viewing?
Can I send a command to the clients browser to open a new window first? If so, how would I specify to use the new window instead of the original?
Joined: Feb 05, 2003
Sep 10, 2004 13:33:00
You can set the header's Content-disposition to attachment.
If you'd rather keep it inline, then you'll probably have to do something with target="_blank" and refresh the new page to hit the Action that generates the pdf and display it there.
A good workman is known by his tools.
rocket mass heater
subject: Opening content in a new window.
PDF loading... please wait
How to close a window and open another one
PDF Download - Outputstream
Issue with copy pasting the URL
Open PDF in new window
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015