Search code examples
javaappletjnlpjava-web-starthttp-authentication

Java: How do I pass parameters to a Webstart Applet?


Scenario: server provides same Webstart Applet to many different (but authenticated) clients. Each Applet has to "know" which client it is on. Therefor the server has to be able to pass some parameters to the client, which is then read by the Applet, running on that client.

  1. Is it possible for a Webstart Applet to access the cookies of the web browser from which it was launched?
  2. Is it possible for a Webstart Applet to access the URL by which it was identified?
  3. Some other options?

EDIT: Perhaps Webstart Applet is a wrong term. I mean just a Webstart Client App.


Solution

  • See the applet-desc element in JNLP File Syntax for details.

    Addendum: See also Accessing Cookies.