This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes Applets security problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Applets security problem" Watch "Applets security problem" New topic
Author

Applets security problem

Suman Madan
Greenhorn

Joined: Sep 19, 2001
Posts: 2
Hi,
I am a beginner and i need help........
I have a applet which reads data from a database and transfers the data onto to a txt file.
The applet and the database reside on the same server. There is no problem in getting the database connection. My problem occurs when it writes the txt file back to the same server. It gives the error :
java.security.AccessControlException: access denied (java.io.FilePermission ..........
I have made the necessary changes in the policy file.
Should I be using the socket method to write the file back?
Thanks in advance for help
regards
Suman
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
This forum is intended for questions and comments about this web site, www.javaranch.com. It is not for questions about the Java language - that's what all our other forums are for.

SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I am moving this discussion to a more appropriate place, the Java in General( intermediate ) forum.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
Consider Paul's rocket mass heater.
 
subject: Applets security problem
 
It's not a secret anymore!