File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Applet in a browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet in a browser" Watch "Applet in a browser" New topic

Applet in a browser

Nirmal Mekala Kumar
Ranch Hand

Joined: Aug 27, 2005
Posts: 63
I am launching an applet from a web page in the browser. Is there a way to get the URI/URL of the web page from which I launched the browser?
Is it a good idea to pass the URL as a parmeter to applet from the Web page?

Nirmal Kumar<br />If you have to aim, aim for the moon. Even if you miss you will land among the stars
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41124
That's what the getDocumentBase method does.

Ping & DNS - my free Android networking tools app
Nirmal Mekala Kumar
Ranch Hand

Joined: Aug 27, 2005
Posts: 63
Oops!! Thank you very much and
sorry for my ignorance.
wood burning stoves
subject: Applet in a browser
Similar Threads
remote applet
Why don't running the applet developping the JAI package&#65311;
How to Call Applets from Servlets
destroy() method not called
Basic concept in Applet-Servlet communication ?