Originally posted by Matthew Brown:
I believe that security restrictions on applets will disallow you from reading from the client's disk. However, if you mean to say that you want to use files on the server-such as a flat file full of parameters, and read it into your applet-Possibly-Create a javabean to open a java io inputstream...Maybe use a filereader with a bufferedinput class. Then call the javabean in your applet.
Originally posted by Matthew Brown:
Sorry for the poor response- but let me ask- what exactly do you intend on doing with this read from the file- are you going to display the data, parse the data- how, from a functional standpoint, is your applet going to work? This might help someone getting an answer to you.
Originally posted by Matt DeLacey:
Netscape and IE, in particular, have security restrictions on this. You simply cannot have an APPLET running on another server access the file system on a local machine. There is a way you can go applet making your applet a trusted applet, but it's kind of difficult and getting examples from Sun on this is like pulling teeth. I'm not sure if signing your aplet would let you access the local foile system, but it DOES let you open sockets with something other than the server on which the applet is run (which is something you CAN'T do with an untrusted applet). It is a shame but you can imagine the huge security problems that would result. I know it's not what you want to hear, but you gotta give up the dream, 'cuz it just ain't gonn happen!
Matt
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|