wood burning stoves*
The moose likes Servlets and the fly likes Return a pdf and refresh the calling page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Return a pdf and refresh the calling page" Watch "Return a pdf and refresh the calling page" New topic
Author

Return a pdf and refresh the calling page

Odair Brentam
Greenhorn

Joined: Dec 26, 2007
Posts: 3
Guys, how can I return a pdf in a response and at the same time refresh the page that contains the link that was clicked to generate the pdf?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Hi "Brentam",
Welcome to the ranch. Your name does not fit the Ranch's Naming Policy. Please read it, and change your name accordingly. Thank you


[My Blog]
All roads lead to JavaRanch
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
Guys, how can I return a pdf in a response and at the same time refresh the page that contains the link that was clicked to generate the pdf?


One request can only return one response so this is not really a servlet problem. You will need to do something on the browser side to cause this sequence of events. See the Javascript forum.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Return a pdf and refresh the calling page