How to find the host from which the Applet has originated ?

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.


By:Jalees
Date:2013-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher