Article View: borland.public.jbuilder.java.language
Article #16251Re: How to obtain the URL?
From: Thierry Foucu
Date: Thu, 11 Mar 1999 00:00
Date: Thu, 11 Mar 1999 00:00
53 lines
1948 bytes
1948 bytes
thanks to all answers, it's working fine thierry Richard Wilkman wrote: > 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:
<36E85999.F029C472@innovacom.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36E815E2.BB44BF32@innovacom.org> <36E839D6.7174A437@netrisk.com> <36E84CA1.D9E91236@inprise.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: Thierry Foucu <Thierry@innovacom.org> Subject: Re: How to obtain the URL? Date: 1999/03/11 Message-ID: <36E85999.F029C472@innovacom.org> X-Deja-AN: 453993656 Content-Transfer-Encoding: 7bit References: <36E815E2.BB44BF32@innovacom.org> <36E839D6.7174A437@netrisk.com> <36E84CA1.D9E91236@inprise.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Innovacom Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language