This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You can't generate or stream binary files like PDFs from a JSP page; use a servlet instead.
What do you mean by "session timeout" - what is the session that times out? If the generation of the PDF takes too long? Or something to do with server-side sesssions?
Joined: Sep 08, 2008
You could perhaps be tricky and display the PDF in an iframe of a parent page, but that doesn't get around the fact that you don't know when the session will time out.
If a rough guess is good enough, then the iframe trick may be your best bet. [ September 08, 2008: Message edited by: Bear Bibeault ]