Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:13:23+00:00 2026-06-15T12:13:23+00:00

I am using JavaScript in order to execute JNLP which in the end will

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:13:24+00:00Added an answer on June 15, 2026 at 12:13 pm

    To be able to insert the http-parameters into the argument of your application, the .jnlp file need to be ‘constructed’ dynamicly on request, because it is not until then you know which http-parameters that will be used.

    The way java-web-start works is that it will download the .jnlp several times, but the apart from the first time it will download the file from the url specified in the codebase and href attributes of the jnlp element.

    So it is not enough to add the argument-element dynamicly in the element, you also need to add it to the codebase/href attributes

    <jnlp spec="1.0+" 
          codebase=<%=request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ request.getContextPath() + "/" %> 
          href="jnlpfile.jnlp&#063;username=<%=request.getParameter("username")%>&clienttoken=<%=request.getParameter("clienttoken")%>">
    
        ...
        <application-desc main-class="test.MainClass">
           <argument><%=request.getParameter("username")%></argument>
        </application-desc>
    </jnlp>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using python-spidermonkey to run JavaScript code. In order to pass objects (instead of
I am using this JavaScript function in order to change image on click, but
I'm using a javascript library called d3 in order to perform some animations on
I'm using Google Maps Javascript API V3 Places Library in order to add Places
Using JavaScript I'm trying to split a paragraph into it's sentences using regular expressions.
I have an issue when trying to get Javascript to execute functions in my
I am using Android and I have an HTML file which contains some Javascript.
Using javascript, How can I convert a human time string like Wed Jun 20
Using JavaScript, is it possible to use prototype to add a method to a
Using JavaScript I open the pop window and parent window is inactive at this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.