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?
posted 12 years ago
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 ]