🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16432

Re: how can I use "file://" protocol with my java browser.

#16432
From: jcaspen
Date: Thu, 18 Feb 1999 00:00
25 lines
1180 bytes
There is a way to create the URL with the following parameters:
(host,protocol,file)

En example:

host = "localhost"
protocol="file:" (if it doesn't work try "file")
file= "path/filename.extension"


Dillan Fernando wrote:

> Hi!
>
> I'm writting an application which uses sun's java browser (not hotjava). I
> have to show an html file save in my "c:" drive.
>
> When I user browser1.setURL("file://c:/myFile.html'); (setURL gets a String
> as a paramater ) the system crashes. Is there any other way I can use
> file:// protocol.
>
> Regards
>
> Dillan Fernando
> Mobinetix
Technical Details
Message-ID: <36CCAA54.639D110E@ittc.ukans.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7aa1r2$55v14@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a3732fd7ed4992bd
X-Google-Attributes: gidf74b3,public
From: jcaspen@ittc.ukans.edu
Subject: Re: how can I use "file://" protocol with my java browser.
Date: 1999/02/18
Message-ID: <36CCAA54.639D110E@ittc.ukans.edu>
X-Deja-AN: 445883862
Content-Transfer-Encoding: 7bit
References: <7aa1r2$55v14@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language