This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41052
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.
It is sorta covered in the JavaRanch Style Guide.
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 ?