aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Issues w/the PDFs and Back Buttons" Watch "Issues w/the PDFs and Back Buttons" New topic
Author

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
http://localhost:8080/ServletStreamer?pageToStream=myPDF.pdf
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!
Dale
[ 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"
Sheriff

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
 
Similar Threads
how to create a link to download pdf file?
JSP - Servlet problem
Is it possible to read a word document using FileReader or FileInputStream?
Read PDF File Path From Servlet. PDF is right under WebContent
Efficient Streaming Methods