wood burning stoves 2.0*
The moose likes Ranch Office 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » This Site » Ranch Office
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applets security problem
 
Similar Threads
Applet won't update database
many applets accessing a writing servlet ...
Applet - Database Connectivity
Applets security problem
Help Needed in Applets....Urgent