Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing and reading from a existing file

 
navish kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a applet and i know it is very difficult (Security Managers) to read and write from a file.
I have this applet and want it to write and read from a file with some manipulations like sorting and etc.

I would like to know how can i make this happen
1. make this applet read a file or write into the file with any kind of script lang if possible.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sending to the applet forum, would be better answered there I reckon!
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you can either use the old signing method, or the new policy method from java 1.2.
If you sign your applet, then it will be able to read and write files to the local file system.
What platform, browser, and JVM are you going to be using? Getting your applet signed can be a little tricky, and it works completely different on Netscape Vs. IE.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, having doen a little cathing up, it looks like the signing's the "easy" part. From what I saw, you then have to get the rules into the classpath with no automated assistance. Or, in other words, by making the user merge properties into the security file used by the browser
Which may be why Sun likes Java Web Start these days (in Java 1.4, JWS becomes part of the basic Java package).
Anyway, thanks to that silly little deal where Microsoft lost a $500 million lawsuit over plugins, it's quite possible that the W3C will pull all plugin support out of HTML -- including applets -- whether signed or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic