jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Issues w/the PDFs and Back Buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Issues w/the PDFs and Back Buttons" Watch "Issues w/the PDFs and Back Buttons" New topic

Issues w/the PDFs and Back Buttons

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
I'm file streaming my PDF files to the web, and all is good.... They are being streamed through a servlet. An example might be something like this for a link
The code opens up the PDF in the same page as the JSP page. It does NOT open a new browser. So this makes it so I have to hit the back button. By the way, this is the way the client wants it to happen. They do NOT want another browser to open. Anyway... so when I do hit the back button I get an error. However on other parts of my site this does not occur and everything works fine. Any ideas.. suggestions or direction to look.
Some added info after looking this over. I can go into the site farther and then come back to this and the back button then works. I think it has something to do w/the servlet context. If someone could fill me in on this and what it might be.. that'd be terrific!
Thanks so much!
[ September 12, 2002: Message edited by: Dale DeMott ]

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Let's try moving this to Servlets.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link: http://aspose.com/file-tools
subject: Issues w/the PDFs and Back Buttons
It's not a secret anymore!