Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

About Applets

Thread view: 
418928@cepsz.unizar.es - 10 Feb 2007 16:38 GMT
Hi everybody,

The following things are not clear to me. I have searched several
documents and do some experiments myself, but I'd like to check some
things. I'm also worried about the compatibility of the answers
regarding different web browsers.

1) What happens if there are two applets with the same id/name on the
same or on a different web page? Does this allow to re-use the old
applet?

2) When is a new JVM process launched by a browser? For example, if I
connect to a certain URL that has a browser, it is clear that a Java
process will start to process the applet. But what happens if now I
launch another browser window that also declares an applet? Is the JVM
previously launched shared for the new applet? Or a new JVM is
launched? And if I execute a new instance of the browser?

3) Related to the previous question, if the JVM is not shared, is
there any way to detect if a certain applet is running on any JVM and
obtain a reference to it (using Javascript)?

4) What should happen if I connect twice to the same URL with the same
applet declared? Are two instances of the same applet executed or can
I "see" the old applet running?

5) Is the communication way of communicating with an applet from
Javascript standard? I know that JSObject (Applet->javascript) is not
compatible with some browsers, but I have not found any document
indicating that the javascript->applet could fail with some browsers.

Thanks,
Sergio.
Andrew Thompson - 10 Feb 2007 17:09 GMT
On Feb 11, 3:38 am, "418...@cepsz.unizar.es" <418...@cepsz.unizar.es>
wrote:
> Hi everybody,
>
> The following things are not clear to me. I have searched several
> documents and do some experiments myself, but I'd like to check some
> things. I'm also worried about the compatibility of the answers
> regarding different web browsers.

You have good cause for worry.

> 1) What happens if there are two applets with the same id/name on the
> same or on a different web page? Does this allow to re-use the old
> applet?

No.  Not in any reliable way.
It would be against the HTML recommendations
to have two elements with identical ID's, so
a browser would be free to render such
elements any way it likes, some browser
might put the applet in both ID's.

> 2) When is a new JVM process launched by a browser?

It depends on the browser (as well as OS,
and sometimes version of browser).

If you want something reliable, avoid
browsers altogether.

What benefit are you aiming to supply
to the end user?

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.