How to save some configuration information in a Java applet?

How to save configuration locally and permanently in a Java applet? Ideally, this should be work with an unsigned applet.

+3
source share
2 answers

In addition to the methods of AlexR ..

  • ..
  • ..
  • Launch the applet in the new generation Java plugin (1.6.0_10 +) and use the PersistenceService JNLP API to serialize the data. Here is the diagram . PersistenceService services .
+4
source

An applet can receive parameters using a tag <param>. This way you can send its parameters that you know at design time or at run time.

, , , , , 2 .

  • cookie, javascript JSObject.
  • . , , , - (, - RestFull). ( <param>), JSP. , , -, .
+2

Source: https://habr.com/ru/post/1787907/


All Articles