Tespa42
Tespa42

Reputation: 577

How do I use html5 local storage in a java applet?

In HTML5, one uses local storage to store things on the client's computer, making them persistent beyond a page refresh. Usually, one uses JavaScript to program things on the client-side, but Java applets can be on the client-side too! Thus, I must ask, how do I use local storage from within a Java applet? If it's not possible, then what can I use instead to make things persistent beyond a page refresh?

Upvotes: 2

Views: 418

Answers (1)

Tom Hawtin - tackline
Tom Hawtin - tackline

Reputation: 147164

You can either use LiveConnect to call the JavaScript "HTML5" functions or (since 6u10) use javax.jnlp.PersistenceService.

Upvotes: 2

Related Questions