🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.databases
Article #58

Re: HELP!!!: Extracting current URL of browser using JAVAapplication.

#58
From: Chris Wolfe
Date: Tue, 14 Dec 1999 00:00
24 lines
2202 bytes
*ack* CROSS-POSTED!!! Follow-ups set. Please post to one or two
applicable newsgroups rather than everything you can find.

URL source = Applet.getDocumentBase();
URLConnection connection = source.openConnection();

Then use the URLConnection to read the data in the page. There is no
portable way I am aware of to request the data from the browser, though
this method should use the browser's cached copy.

Chris

"���� ��� ����� michal & raz" wrote:
> 
> hi,
> I am writing a java application that needs to extract text from .html pages.
> 
> in order to do that i need to be able to "see" the current browser's page
> URL.
> 
> how can i "ask" for the current page from an application?
> 
> thank's
> raz
Technical Details
Message-ID: <3856F75F.57A06382@globetrotter.qc.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <836hot$h72$1@news.netvision.net.il>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 113ae9,961a7827a2457d06,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: fb99b,961a7827a2457d06,start
X-Google-Attributes: gidfb99b,public
X-Google-Thread: 10bb9b,961a7827a2457d06,start
X-Google-Attributes: gid10bb9b,public
X-Google-Thread: 10a146,961a7827a2457d06,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: f5e83,961a7827a2457d06,start
X-Google-Attributes: gidf5e83,public
X-Google-Thread: 10fd6d,961a7827a2457d06,start
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 107d46,961a7827a2457d06,start
X-Google-Attributes: gid107d46,public
X-Google-Thread: 115960,961a7827a2457d06,start
X-Google-Attributes: gid115960,public
From: Chris Wolfe <cwolfe@globetrotter.qc.ca>
Subject: Re: HELP!!!: Extracting current URL of browser using JAVAapplication.
Date: 1999/12/14
Message-ID: <3856F75F.57A06382@globetrotter.qc.ca>
X-Deja-AN: 560791802
Content-Transfer-Encoding: 8bit
References: <836hot$h72$1@news.netvision.net.il>
X-Accept-Language: en
Followup-To: comp.lang.java.programmer
Content-Type: text/plain; charset=iso-8859-1
Organization: Queen's University, Kingston
Mime-Version: 1.0
Newsgroups: comp.lang.java.databases,comp.lang.java.gui,comp.lang.java.help,comp.lang.java.machine,comp.lang.java.programmer,comp.lang.java.softwaretools,comp.os.ms-windows.programmer.multimedia,cz.comp.lang.java,de.comp.lang.java,fj.comp.lan