[2477] in java-interest

home help back first fref pref prev next nref lref last post

Re: interapplet communication

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Tue Oct 3 01:59:44 1995

Date: Mon, 2 Oct 1995 10:22:29 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: jbreiden@MIT.EDU
Cc: java-interest@java.Eng.Sun.COM


Hi Jeff,

> What is the preferred mechanism letting applets communicate with each
> other? For example, let's pretend there are two independent
> applets. One is called "RecordName" which asks you for your name and
> stores it as a string.
> 
> Then, an hour later, another applet "SayName" is run, which looks up
> your name and speaks it out loud. How is this information to be passed
> (and stored) between applets?
> 
> Once possibility would be to store the relevant information in
> environment variables. Is this supported by Java? I noticed that
> getenv() (in java.lang.System) has been marked obsolete.
> 
> Or do we need to save the information to a local file? Or is there
> some other preferred way to handle this type of communication?

Right now applets can comminicate among each other as long as they
are on the same page. There is no way an applet can store persistent
information. There are some security considerations, but this may
be something we could add later.

Have fun,

	Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post