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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39543
That's what the getDocumentBase method does.

Ping & DNS - updated with new look and Ping home screen widget
Nirmal Mekala Kumar
Ranch Hand

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