This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
My jar includes a text file to store persistent data.
I understand my applet can read from that text file without needing any signing or security policy changes, but is it possible for my applet to write to the same text file without needing any signing or security policy changes?
Would have thought this would be a safe operation, but haven't seen anything yet that suggests it's possible...
By the way, I am using JDK1.1.
posted 9 years ago
The applet can read from that file because it's in the classpath. That mechanism for accessing resources through the classlaoder can't be used for writing.
Even if it was possible, then the file would still be on the server, and there are no provisions to enable an applet to write to a server without some intervening server code such as a servlet.
(As a side note, the java.util.jar package does not allow the modification of jar files, just reading and creating them.)