Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How to find the host from which the Applet has originated ?
Two methods help here:
public java.net.URL getDocumentBase();
public java.net.URL getCodeBase();
The getDocumentBase() returns the URL to the host 
that server the HTML document.
The getCodeBase() returns the URL to where the 
original applet class was loaded from.