• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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.
 
Marshal
Posts: 67497
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67497
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
Oh the stink of it! Smell my tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic