Permissions

Sorry if this has been asked before, I tried searching but came up with nothing.

I have a aprogram that does a bunch of File IO, and everything works fine when I run it from the command line, but now Ive put a graphical frontend on and wish to run from an applet on a web browser.

The File IO is only reading and writing text files local to the server, actually in the same directory as the class files.

My applet, apparently, does not have the correct permissions to perfom file IO. Can someone explain to me how I can fix this? or if an applet is ever allowed to perfom file io?

thanks,

Soothsayer

[636 byte] By [Soothsayera] at [2007-11-27 6:55:59]
# 1

> The File IO is only reading and writing text files

> local to the server, actually in the same directory

> as the class files.

File IO is always local to the running code, in case of an applet it's on the client.

> My applet, apparently, does not have the correct

> permissions to perfom file IO. Can someone explain to

> me how I can fix this? or if an applet is ever

> allowed to perfom file io?

Use an UrlConnection to read the file on your server. You won't need to set permissions for that, an applet is allowed to do this.

CeciNEstPasUnProgrammeura at 2007-7-12 18:32:46 > top of Java-index,Java Essentials,New To Java...
# 2
thanks for reply,does anyone have any syntax for my problem? and are you saying that the applet is running from the client browser cache?thanks,soothsayer
Soothsayera at 2007-7-12 18:32:46 > top of Java-index,Java Essentials,New To Java...