• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Saving a file on the client's machine

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to Save a file at the client place using JSP.

[BPSouther: Added meaningful subject line]
[ March 15, 2007: Message edited by: Ben Souther ]
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some advice: you'll get a better response if you use a meaningful subject line. Also, in order that those for whom English is not their first language have a better chance of understanding what is posted in these forums, we ask that you refrain from using words that are not recognized English, such as "plzzzzzzzzzz". Also, you might benefit from reading this.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In short, you can't.
Browsers, for security reasons, don't allow this.

What you can do, is set the Content-Type and Content-Disposition headers in such a way that the browser will prompt the user with a "Save As" dialog box.

See our JspAndExcel entry in the JSP FAQ page for an example that does this.
reply
    Bookmark Topic Watch Topic
  • New Topic