• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Problem downloading a file

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have a JSP file which will display a link. On click of the link, it will try opening a csv file from the server, the option is given to the user to either save or open the file from the same location. When the user tries to save the file, the save dialog box displays the name like "filename[1].csv". How to avoid this autonumbering with the file name?? The code that I have used is

Is there any other better approach???
Thanks and Regards,
Uma.
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I know, there isn't anything much you can do about this as it is a client-side operation controlled by the browser.
bear
 
Uma Balu
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Yes, that was argument, but this has been posted a bug by the QA and we ought to find a way out... any resources that you can point to???
Thanks,
Uma..
 
Bear Bibeault
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's an admirable attitude. Since any possible solution (I wouldn't get my hopes too high) would probably be browser-specific, I'd start at the MSDN site to see if there are any IE-isms that might help out.
good luck,
bear
P.S. Let me know if you'd like this topic transferred to the HTML forum where the browser-savvy tend to hang out. I'm going to keep it here for the time being (unless you ask otherwise) in case anyone knows of any server-side MIME content-type magic that might help you out.
 
Uma Balu
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear....
Hmm.. That's nice idea, let me try if there are any IE specific headers available.
Thanks a lot,
Uma.
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic