Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

DownloadAction IE problem on Open

Scott Smith

2007-03-19

Replies:

I've implemented a file download using the Struts 1.2.9 version of
org.apache.struts.actions.DownloadAction. When the user hits the
download button, he or she gets the save/open/cancel dialog with the
correct filename. In Firefox, hitting "save" or "open" does exactly
what I expect (i.e., I can save the file or open it in notepad). On IE,
"save" works as expected.



However, in IE6, if I hit "Open", it opens notepad with a filename that
looks like "file[1].txt" (note the "[1]" which doesn't exist in the
original filename and then it asks if I want to create a new file since
it appears the file didn't get downloaded. Has anyone else seen this
and found a solution?



Scott





©2008 junlu.com - Jax Systems, LLC, U.S.A.