Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

easy java question

Status
Not open for further replies.

redss

Programmer
Oct 20, 2002
195
0
0
I understand that java uses sandboxing to prevent access to the local filesystem. But I know some applets allow the user to select a file on the local system. How do they do that?
 
it is possible to gain access to a local file system using security policies and signed applets, introduced in Java 1.2

By default you do not have access, however using the policies you can override the defaults and provide a fine level of control, for example you could give a applet write permission to one directory only and deny it read permission, and read permission to a different directory, but not write permission.

Check out the
Code:
SecurityManager
heading in the Java API documentation. -------------------------------------------
There are no onions, only magic
-------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top