簡體   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