• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

File Download Issue in IE

 
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic