• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem opening PDF files in different browsers

 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Am facing a problem in opening PDF files when migrated from Tomcat 4.1 to 5.5. In 4.1, i was able to open different PDF files in different browsers and each was having a different name. Now in Tomcat5.5, when ever i open multiple PDF files, the PDF files are opening in sinlge browser itself and when saving ,they are getting saved with a constant name.

Could any one let me know if they had come across any such problem and if so pls provide some response.

Thanks
Raj
[ June 21, 2007: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you serving up the PDFs; just a hyperlink?
 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,they are accessed via the hyperlink in the application browser.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I were debugging this, the first thing I would do is use either a packet sniffer or a tool like LiveHttpHeaders (plugin for FireFox) to see what's different about the response headers when the hyperlink is clicked.

The Content-Disposition header is where the filename is suggested to the browser. The same header also suggests that the file either be shown inline or be treated as an attachment.

See if that header and the content-type headers are the same in both versions of Tomcat
 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank zou ben,
but is there a way i can find out from the browser itself? i dnt have access to the code.

for installing live http headers,its just that i need to extract into plugins folder in mozilla ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajendar Goud:
Thank zou ben,
but is there a way i can find out from the browser itself? i dnt have access to the code.

for installing live http headers,its just that i need to extract into plugins folder in mozilla ?


Browsers, by default, don't show you the HTTP headers.
LiveHttpHeaders will allow you to see them.
I've always installed it by clicking on the "Install" link from their site.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, the FireBug plugin for Firefox will also show you the headers (+ a lot more).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic