• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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
 
You can't expect to wield supreme executive power just because
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!