You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Kavanagh <da...@dotech.com> on 2003/06/16 06:43:45 UTC

how to generate PDF and redirect at same time

I have a situation where I'm going to generate a PDF (using FOP) and I 
need to refresh the page the user was on. Any thoughts? I can't both 
generate output and issue a redirect. I thought about (upon the user 
action) refreshing the current page and in that html, causing a popup to 
appear where the user has a link to generate the PDF. This sort of puts 
the cart before the horse. I need update a database, extract some 
information then transform that to XSL:FO and seralize as PDF. I'd 
rather not update the database without knowing if the PDF has actually 
been generated.
I guess cocoon aside, I need the client (browser) to generate two 
requests when a button is pressed... javascript time?

Davdi


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org