aspose file tools*
The moose likes JSP and the fly likes Problem downloading a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem downloading a file" Watch "Problem downloading a file" New topic
Author

Problem downloading a file

Uma Balu
Ranch Hand

Joined: Aug 22, 2003
Posts: 61
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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61601
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Uma Balu
Ranch Hand

Joined: Aug 22, 2003
Posts: 61
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61601
    
  67

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

Joined: Aug 22, 2003
Posts: 61
Hi Bear....
Hmm.. That's nice idea, let me try if there are any IE specific headers available.
Thanks a lot,
Uma.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem downloading a file