繁体   English   中英

Jnlp文件未在Internet Explorer浏览器中下载

[英]Jnlp file is not downloading in internet explorer browser

我有一个jsp文件,其中将包含具有动态参数的jnlp文件内容,如下所示,

<% response.setContentType("application/x-java-jnlp-file"); %>
<?xml version="1.0" encoding="utf-8"?> 

<jnlp spec="1.0+" codebase="http://localhost:8080/testJnlp/" href="verifyDSC.jsp?param=<%=request.getParameter("param")%>">
    <information>
        <title>Jnlp Signing</title>
        <vendor>test</vendor>
        <homepage href="http://localhost:8080/testJnlp" />
        <description>Signing</description>
    </information>

    <security>
        <all-permissions/>
    </security>

    <resources> 
        <j2se version="1.6+"/>
        <jar href="JnlpVerifyDSC.jar" main="true"/>
    </resources>

    <application-desc main-class="package.VerifyDSC">
        <argument><%=request.getParameter("param")%></argument>
    </application-desc>
    <update check="background"/>
</jnlp>

如果我在forefox&chrome中执行上述文件,则jnlp文件将被下载并正常工作,但是在IE中会抛出“无法显示页面”错误。

您能否让我知道如何解决此问题。

通过在jnlp文件中添加以下行来解决此问题,

response.setHeader("Content-Disposition", "attachment; filename=verifyDSC.jnlp");

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM