开发者

Not able to view popup to save xls file(in IE7), writing file into servlet response

I am writing a xls file in 开发者_运维技巧servlet response. When user request for file using url "http://localhost:8080/AppName" code is working fine in IE7 however when i am trying with IP("http://10.0.1.54:8080/AppName") instead of localhost it dosen't work. I do not gets any popup to save xls file.

The same code with ip in url("http://10.0.1.54:8080/AppName") works fine in mozilla. Ia m using jdk 1.6, tomcat 6 and IE7.

Please suggest me how to overcome from this problem. Thanks for your precious help in advance.

Regards, Yogi


Check your inter-net vs intra-net settings. When you browse using localhost as a host name, IE uses intra-net settings. When you use IP, inter-net settings are used.


what content type and content disposition headers are you returning?

see this

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜