# RE: "my own applet and my own local data files"

Liu, B. Mike (mliu@dot.state.nv.us)
Fri, 6 Aug 1999 07:25:28 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sita Surapaneni: "JCE1.2"
- Previous message: Wigzell, Cathy: "AccessControlException and java.policy"

    From: "Liu, B. Mike" <mliu@dot.state.nv.us>

    To: "'java-security@java.sun.com'" <java-security@java.sun.com>

    Subject: RE: "my own applet and my own local data files"

    Date: Fri, 6 Aug 1999 07:25:28 -0700

-----Original Message-----
From: Charlie Lai [mailto:charlie@angeles.eng.sun.com]
Sent: Thursday, August 05, 1999 6:23 PM
To: mliu@dot.state.nv.us
Subject: Re: "my own applet and my own local data files"

> Just wondering if there is a good solution or an alternative to let "your
> own applet" to access "your own local files".
>
> One example is that I put an applet on a CDR and try to make this applet
> read a *.txt file on the same CDR. How can this be done without too much
> help from whoever received this CD?

i'm not sure i understand.
applets loaded from the local file system
can read files that are from the same directory (and below)
from where the applet originated. so if the "applet's own local files"
reside in the same directory (or below) from where the applet
sits, then the applet can read them.

applets can also connect back to the same host from where they
came from, so they can access "their own" files that way as well.

thanks,
charlie

ps. in the future, the best thing to do is send requests to:
java-security@java.sun.com

----------------------------------------------

In the future, I'll send requests to: java-security@java.sun.com

Sorry, I mean the applet running in a browser. Based on what I read, this
type of applets cannot read any *.txt or similar files except graphics files
etc.

If this can be done, where can I find some working sample code?

Thanks.

----------------------------------------------

- Next message: Sita Surapaneni: "JCE1.2"
- Previous message: Wigzell, Cathy: "AccessControlException and java.policy"