相关疑难解决方法(0)

IE无法下载foo.jsf.IE无法打开这个网站.请求的网站不可用或无法找到

我在HTTPS(SSL)主机上的JSF Web应用程序中提供文件下载(通常是CSV或PDF).它在大多数浏览器中都能正常工作,只有IE7/8会出现以下错误:

Internet Explorer无法下载foo.jsf.Internet Explorer无法打开此Internet站点.请求的网站不可用或无法找到.请再试一次

我认为该错误与JSF <h:commandLink>标记与IE不兼容有关.

<h:commandLink value="Download" action="#{bean.download}" />
Run Code Online (Sandbox Code Playgroud)

这是怎么造成的,我该如何解决?

https jsf internet-explorer download

12
推荐指数
1
解决办法
6861
查看次数

无法在IE中打开xls文件

我们有JSF Web应用程序,它生成XLS文件并为用户提供指向该文件的链接.
如果通过HTTP访问此文件,一切正常.
但IE(8)无法通过HTTPS打开/保存此xls文件.
有以下错误消息:

Internet Explorer cannot download ...466088C5C313F92808BDB0AFF3447 from testhost.

Internet Explorer was not able to open this Internet site.  The requested site is either unavailable or cannot be found.  Please try again later.
Run Code Online (Sandbox Code Playgroud)

我可以在Firefox和Chrome中通过HTTPS打开同一个文档.
IE可能有什么问题?

头:

HTTP/1.1 200 OK
Date: Fri, 18 Jun 2010 14:45:42 GMT
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
X-UA-Compatible: IE=EmulateIE7
Last-Modified: Fri, 18 Jun 2010 14:45:11 GMT
Cache-control: max-age=0, no-store, no-cache
Pragma: no-cache
Expires: 0
Content-Type: application/vnd.ms-excel
Content-Length: 6656
Keep-Alive: timeout=5, max=100
Connection: …
Run Code Online (Sandbox Code Playgroud)

https jsf internet-explorer internet-explorer-8

8
推荐指数
2
解决办法
1万
查看次数