Use javascript event onbutton(back) to trap the action and prevent the standard 
browser action and instead do a direct action http://homepageaddress/page/# 
re-direction....?

________________________________

From: VLAHANDREAS Dawn J [mailto:[EMAIL PROTECTED]
Sent: Tue 8/1/2006 7:33 PM
To: [email protected]
Subject: [iText-questions] Web and back/forward buttons



I have a servlet that generates a pdf for the web.
My code is very similar to the tutorial:

writer = PdfWriter.getInstance(document, baos);

   Create the document ....

ServletOutputStream out = response.getOutputStream();
baos.writeTo(out);
out.flush();

I'm using a struts framework, with a JSP. There is a button on the JSP,
which calls the action class, which calls the servlet to generate the
PDF.

It works fine, until you use the back button to get back to the page
where you started, and then use the forward button. My server basically
grinds to a halt.

Has anyone come across this before?





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to