Article View: borland.public.jbuilder.java.language
Article #19597reading a file into an applet from my web site
From: Greg Dickson
Date: Tue, 13 Jan 1998 00:00
Date: Tue, 13 Jan 1998 00:00
28 lines
1320 bytes
1320 bytes
Hi guys
I have been tring to read a file in the same directory on my web site
(its a config file for the applet that I would prefer not to be a set
of parameters)
is this possible
I have tried several things and I got this to work on IE4 but only on
it
try {
URL myConfigFile = new URL( getDocumentBase(), "config.txt");
URLConnection connectFile = myConfigFile.openConnection();
BufferedReader thePage = new BufferedReader(
new InputStreamReader(
connectFile.getInputStream()));
this throws an
AppletSecurityException:
in all other browsers
Hey I only want to read a file from wense I came is this possible yet
or must the applet be signed ... etc to do just this
Or via CGI
thanks heaps Greg Dickson
witchy@netserv.net.au
Technical Details
Message-ID:
<69fs5n$b5b9@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,95f8cdf01d946206,start X-Google-Attributes: gidf74b3,public From: "Greg Dickson" <witchy@netserv.net.au> Subject: reading a file into an applet from my web site Date: 1998/01/13 Message-ID: <69fs5n$b5b9@forums.borland.com> X-Deja-AN: 315540550 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: None Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language