当前位置: 技术问答>java相关
download file as .txt from jsp performs differently in IE5.0 and IE5.5
来源: 互联网 发布时间:2014-12-22
本文导语: hello, friends I hava a jsp which contain a link to down load this jsp page as a .txt file. I use response.setHeader("Content-Disposition","attachment; filename= result.txt;"); it works great in IE5.0, it pop up the save as dialog box and s...
hello, friends
I hava a jsp which contain a link to down load this jsp page as a .txt file.
I use response.setHeader("Content-Disposition","attachment;
filename= result.txt;");
it works great in IE5.0, it pop up the save as dialog box and shown the default flie name as result.txt.
but... in IE5.5, it performs differently. instead of pop up the save as dialog box, it just directly display the .txt file in the browser.
does someone know how to solve the problem???
urgent help needed!
thanks
I hava a jsp which contain a link to down load this jsp page as a .txt file.
I use response.setHeader("Content-Disposition","attachment;
filename= result.txt;");
it works great in IE5.0, it pop up the save as dialog box and shown the default flie name as result.txt.
but... in IE5.5, it performs differently. instead of pop up the save as dialog box, it just directly display the .txt file in the browser.
does someone know how to solve the problem???
urgent help needed!
thanks
|
Wed Dec 13 16:34:27 2000 HTTP/1.1 200 OK
Wed Dec 13 16:34:30 2000 Server: JavaWebServer/1.1.1
Wed Dec 13 16:34:30 2000 Content-Disposition: attachment; filename=forte_ce_2.exe
Wed Dec 13 16:34:30 2000 Content-Length: 9482155
Wed Dec 13 16:34:30 2000 Content-Type: application/octet-stream
Wed Dec 13 16:34:30 2000 Last-Modified: Fri, 08 Dec 2000 19:31:36 GMT
Wed Dec 13 16:34:30 2000 Connection: close
Wed Dec 13 16:34:30 2000 Date: Wed, 13 Dec 2000 08:29:13 GMT
Buddy, i'd get that mime header from downloading forte_ce. It will working on both ie5 and ie5.5.
Last time, u said that it maybe caused only by text file. I suppose that it's a new "feature" of ie5.5
:)
Wed Dec 13 16:34:30 2000 Server: JavaWebServer/1.1.1
Wed Dec 13 16:34:30 2000 Content-Disposition: attachment; filename=forte_ce_2.exe
Wed Dec 13 16:34:30 2000 Content-Length: 9482155
Wed Dec 13 16:34:30 2000 Content-Type: application/octet-stream
Wed Dec 13 16:34:30 2000 Last-Modified: Fri, 08 Dec 2000 19:31:36 GMT
Wed Dec 13 16:34:30 2000 Connection: close
Wed Dec 13 16:34:30 2000 Date: Wed, 13 Dec 2000 08:29:13 GMT
Buddy, i'd get that mime header from downloading forte_ce. It will working on both ie5 and ie5.5.
Last time, u said that it maybe caused only by text file. I suppose that it's a new "feature" of ie5.5
:)
|
It's the explorer's setting. My IE5 is set to display .txt file.
|
e问看起来比较累,呵呵,所以,最好用中文嘛
或许是ie5.5的设置不一样呗。
或许是ie5.5的设置不一样呗。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。