我正在使用 JavaScript 来执行 JNLP,它最终将执行我的客户端。
我正在尝试通过 JavaScript 执行将参数传递给 JNLP,并在我的客户端中通过 JNLP 获取这些参数。
例如,JavaScript 正在执行此 URL:
http://localhost:8080/MyJnlp.jnlp?login=14hhh765p&pass=ggyyktff
现在我的 JNLP 将尝试以<application-desc name tag
这种方式获取参数:
<application-desc name="..." main-class="com.main.execute" >
<argument>-nosplash</argument>
<argument>-q</argument>
<argument><%=request.getParameter("login")%></argument>
<argument><%=request.getParameter("pass")%></argument>
</application-desc>
但它没有用。
我无法以这种方式在客户端代码中检索这些参数:
login=getParamsFromJnlp("login")
..
public String getParamsFromJnlp(String key) {
return System.getProperty(key);
}
JNLP 在 APACHE2.2 内部
知道有什么问题吗?