• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to print in Netscape  RSS feed

Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I'm working on an application that is basically a series of forms. Each page gathers info from the user and passes it to a controller servlet who then determines which jsp page to serve up. The jsp imports various beans and displays a subsequent form containing the bean parameters (name, member_no, etc.).
The problem is that we have implemented this:
res.setHeader("Pragma", "no-cache");
res.setHeader("Cache-Control", "no-cache");
res.setDateHeader("Expires", 0);
dispatcher.forward(req, res);
in the servlet to prevent users from backing up through the jsp pages. Now, when we try to print the pages in Netscape, all that prints is:
This document resulted from a POST operation and has expired from the cache. If you wish you can repost this form by reloading the page...
The pages print fine in IE, but in Netscape4.x, this is all we get unless we reload the page BEFORE hitting the Print button.
Does anyone know why Netscape seems to print an empty cache instead of the actual jsp page? or if there is something in the servlet that is overkilling the no-cache function?
Any ideas on how to print this jsp in Netscape on the first try?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!