Article View: borland.public.jbuilder.java.language
Article #16435Re: how can I use "file://" protocol with my java browser.
From: Dillan Fernando
Date: Thu, 18 Feb 1999 00:00
Date: Thu, 18 Feb 1999 00:00
45 lines
1474 bytes
1474 bytes
Hi!
Thanks for the reply.
I found the solution for it.
I just used file:///c:/myfile.html
even file://localhost/c:/myfile.html works
Thanks once again
Regards
Dillan Fernando
jcaspen@ittc.ukans.edu wrote in message
<36CCAA54.639D110E@ittc.ukans.edu>...
>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:
<7aicm9$end3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7aa1r2$55v14@forums.borland.com> <36CCAA54.639D110E@ittc.ukans.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a3732fd7ed4992bd X-Google-Attributes: gidf74b3,public From: "Dillan Fernando" <dillan@geocities.com> Subject: Re: how can I use "file://" protocol with my java browser. Date: 1999/02/18 Message-ID: <7aicm9$end3@forums.borland.com> X-Deja-AN: 445901511 References: <7aa1r2$55v14@forums.borland.com> <36CCAA54.639D110E@ittc.ukans.edu> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language