This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi there: I must deal with a common text file on my program. When I runthe program on a PC, everything is fine, but once I put it on the web server (UNIX) I doesn't run. Here is the line where I'm getting an error: DataInput FileID = new DataInputStream(new FileInputStream("results.txt")); The error is: netscape.security.AppletSecurityException: security.checkread: Read of 'results.txt' not permitted can anybody give a hint, please? Roger
Just a thought here, but as applets can't access the disk directly, you'll need to go through some sort of interface. While i don't know how to implement this, i beleive a Java servlet would be a way to go. Again, just a thought. PAS ------------------ PAS firstname.lastname@example.org 2b | | !2b
PAS<br />email@example.com<br />2b || !2b
Joined: Aug 01, 2001
Thanx for sharing your "Thoughts", I've forgotten that little detail (My program is an applet). Any ideas?
Originally posted by Peter Simard: Just a thought here, but as applets can't access the disk directly, you'll need to go through some sort of interface. While i don't know how to implement this, i beleive a Java servlet would be a way to go. Again, just a thought. PAS
Either make it a signed applet, or write the results file out to someplace where you DO have access rights (like Peter said - if this was a Servet you could write to the server). You could look into writing it to a cookie. Of course not all users allow cookies.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Aug 01, 2001
Cindy: Could you please explain me a little bit more about "signed applet"? I'm looking for an quick alternative, because I need to put this information online as soon as possible, but I made a big mistake forgeting the applet security stuff. Thanx.
Joined: Sep 29, 2000
You can read about them here Or you could do a search on "signed" in the Applet forum.