How do I grant applets access to local resources?
Hi:
I know that for a remotely loaded applet to access local resources the applet must be signed. But, creating a jarfile and signing it for every step in the development is tideous. Is it possible for a locally loaded applet to access local resources without signing the applet?
Secondly, I found some resources mention that signing is not enough. Is this true? if so, how do I request access to a particular resource?
Thanks, Erik
[457 byte] By [
norgaarda] at [2007-11-26 18:40:35]

# 1
But, creating a jarfile and signing it for every step in the development is tideous.
I assume you mean time to compile and run new code, rather than the process itself (use a build script and you only need do it once).
I'd normally provide an entry point as an application as well, which makes running for development purposes much easier, then just test as an applet as part of a test cycle.
# 2
Things work on the command line but fail as applet. I need to figure out why.
One problem seems that calling applet methods from a java script run on the onload event fail because the applet is not yet initialized. But moving the function to a user initiated event did not solve the problem.
I need to get access to a smart card reader and load the card, I do really simple stuff: check if the card is inserted and get the length of the ATR code.
So, there is some missing link and I suspect it may be managing the security parameters. I know about signing but nothing else. What do I need to do to grant my applet access to local resources?
Thanks, Erik