Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get a pdf generated and the page reloaded with 1 request?  RSS feed

 
Kirstin Schapitz
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

what I would like to do is...:
When I submit a page (clicking a button), I need to get a pdf document generated and so offered for download. Additionally this page needs to be reloaded too.
I just know how to do either of them, getting the pdf or getting the page reloaded to display some changes since they have different content types and I can only specify one.

Can anybody help here and give some advice in how to accomplish both things?
Thank you.
 
Amit Vinod Dali
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
response.setHeader("Refresh", "5; URL=http://host/path"); (eql. to <META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://host/path"> in the HEAD section of the HTML page).
 
Kirstin Schapitz
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for your fast response. That solves my problem and works in Mozilla, but it doesnt in Internet Explorer which is a bit annoying. Maybe you know a solution for IE as well?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!