This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes File Download Issue in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File Download Issue in IE" Watch "File Download Issue in IE" New topic
Author

File Download Issue in IE

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178
Dear Friends,

I'm trying to write a file download method in Struts (v1.1) action. I need to download a plain text file but with different extension (For example: test.reg) Following is the code snippet:

As soon as i click the download button, the above method is called and 'Open/Save/Cancel' pop-up is displayed. When i click 'Open', the IE browser displays all the contents properly in the new window. But if i click save i'm getting an error like this : "Internet Explorer cannot download testAction.do from localhost."
I'm able to download the file in Chrome browser but not able to download it in Internet Explorer v8. I cant find any exception stack traces in any logs.

Kindly provide your help in resolving the issue.

Thanks,
Vijay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Download Issue in IE
 
Similar Threads
FileDownloadServlet
servlet file download works in Firefox but not IE 6
CANNOT download file from https in IE 6
Serving PDF with my servlet - performance & non-display
problem with download dialog box