title: Pass dynamic params via JNLP
body: <p>I am using JavaScript in order to execute JNLP which in the end will execute my client.</p>
  
  <p>I am trying to pass parameters via JavaScript execution to the JNLP and having those parameters via JNLP inside my client.</p>
  
  <p>The JavaScript is executing this URL for instance:</p>
  
  <pre><code>http://localhost:8080/MyJnlp.jnlp?login=14hhh765p&amp;pass=ggyyktff
  </code></pre>
  
  <p>Now my JNLP will try to get the parameters in the <code>&lt;application-desc name tag</code> this way:</p>
  
  <pre><code>&lt;application-desc name="..." main-class="com.main.execute" &gt;
          &lt;argument&gt;-nosplash&lt;/argument&gt;
          &lt;argument&gt;-q&lt;/argument&gt;
      &lt;argument&gt;&lt;%=request.getParameter("login")%&gt;&lt;/argument&gt;
      &lt;argument&gt;&lt;%=request.getParameter("pass")%&gt;&lt;/argument&gt;
  &lt;/application-desc&gt;
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>I couldn't retrieve those parameters in my client code this way:</p>
  
  <pre><code>login=getParamsFromJnlp("login")
  ..
  
  public String getParamsFromJnlp(String key) {
      return System.getProperty(key);
  }
  </code></pre>
  
  <p>The JNLP is inside APACHE2.2</p>
  
  <p>Any idea what's wrong?</p>