Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 725
java.is.for.desktop.indeed Avatar asked Oct 10 '22 07:10

java.is.for.desktop.indeed


1 Answers

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

Addendum: See also Accessing Cookies.

like image 95
trashgod Avatar answered Oct 18 '22 00:10

trashgod