[4074] in java-interest
Re: standalone vs browser invocation
daemon@ATHENA.MIT.EDU (Suresh Srinivasan)
Sat Dec 9 08:05:44 1995
Date: Sat, 9 Dec 1995 06:50:39 -0500
From: suresh@thomtech.com (Suresh Srinivasan)
To: java-interest@java.sun.com
> From: jshermer@BASISinc.com (Jill Shermer)
> To: java-interest@java.sun.com
>
> Is there any existing class method in Java beta that will indicate
> whether a class is invoked via java vs html request?
>
I had the same situation and I ended up using a different
constructor. Initialization via HTML calls the null
constructor. For example:
class Foo extends java.applet.Applet {
boolean fromJava = false;
public Foo(boolean how) {
fromJava = how; // set to true if called from Java
...
}
...
}
Perhaps there's a better way?
--Suresh
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com