Article View: borland.public.jbuilder.java.language
Article #16250Re: How to obtain the URL?
From: Richard Wilkman
Date: Thu, 11 Mar 1999 00:00
Date: Thu, 11 Mar 1999 00:00
47 lines
1757 bytes
1757 bytes
Vasu: getCodeBase() gives you the URL to the class. I think he needs getDocumentBase() to get the URL to the html file. -Rich Vasudevan Srinivasan wrote: > > Hi > use getCodeBase() method of the applet. > > Vasu > > Thierry Foucu wrote: > > > hi, > > > > i wrote a java applet, using JDK 1.2 > > and i would like to know if there is a way to obtain the URL of the HTML > > page where the applet is? > > > > sample: > > if my html page is www.test.fr/applet.html > > and in the applet.html, i put the java applet, > > i would like from my applet to retreive the URL, www.test.fr > > > > so is it a way to do that? > > > > thierry > > > > ps: sorry to ask, but i very new in java -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<36E84CA1.D9E91236@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36E815E2.BB44BF32@innovacom.org> <36E839D6.7174A437@netrisk.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c2fec24240da0b9d X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: How to obtain the URL? Date: 1999/03/11 Message-ID: <36E84CA1.D9E91236@inprise.com> X-Deja-AN: 453979466 Content-Transfer-Encoding: 7bit References: <36E815E2.BB44BF32@innovacom.org> <36E839D6.7174A437@netrisk.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language