I am using JavaScript in order to execute JNLP which in the end will execute my client.
I am trying to pass parameters via JavaScript execution to the JNLP and having those parameters via JNLP inside my client.
The JavaScript is executing this URL for instance:
http://localhost:8080/MyJnlp.jnlp?login=14hhh765p&pass=ggyyktff
Now my JNLP will try to get the parameters in the <application-desc name tag
this way:
<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>
But it didn't work.
I couldn't retrieve those parameters in my client code this way:
login=getParamsFromJnlp("login")
..
public String getParamsFromJnlp(String key) {
return System.getProperty(key);
}
The JNLP is inside APACHE2.2
Any idea what's wrong?