• Post Reply Bookmark Topic Watch Topic
  • New Topic

dialog box doesn't appear when downloading a PDF

 
Susmitha Metlapalli
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have deployed my application on tomcat server. one of the JSP contains respective links for both Winzip file and a PDF file.

When user clicks on the link provided for

1. Winzip file, an Open / Save dialog box pops up.
2. PDF file, the file gets opened automatically without an open / Save dialog box.

How to get an Open / Save dialog box when clicked on the link provided for PDF file also?

Thanks,
Susmitha.
[ June 04, 2007: Message edited by: Bear Bibeault ]
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

that behavior has nothing to do with the links or your JSPs. If you click on a HTML link your browser gets data of certain content type. Everything that follows depends on your browser and browser settings.

Marco
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want a save/open dialog box, you can suggest that the browser open one by setting the Content-Disposition response header.

Use the "attachment" attribute, not "inline".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!