• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Change file name without prompt to save  RSS feed

 
Author
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I add the setHeader code to change the name it always
prompts me with a save as box. Is it possible to change
the file name without the prompt to save? If I don't try
to change the file name it opens right into Adobe Acrobat.
As I set the Mime Type to "application/pdf".



Thanks,
Tom
 
Tom Henricksen
Author
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried using inline as mentioned this in the is link

http://forum.java.sun.com/thread.jspa?threadID=486951

But the fileName is still the name of the JSP.

Thanks,
Tom
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change "attachment" to "inline" and it will open in the browser.
 
Tom Henricksen
Author
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben,
I tried that, as I noted in my second post and the same result. It appears I must have something else messed up.
Thanks,
Tom
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!