开发者

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

开发者 https://www.devze.com 2023-03-08 17:28 出处:网络
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:/

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

精彩评论

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