This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applets security problem

 
Suman Madan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this discussion to a more appropriate place, the Java in General( intermediate ) forum.
 
Acetylsalicylic acid is aspirin. This could be handy too:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!