Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Applet function connecting database called by Javascript

 
niqi li
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

I've posted another question here; This question is something I am lacking of knowledge in Java. Could anyone give me a lesson please?

I've got a function which connects to database. The codes are copied from somewhere in the same file which works fine, no privilege errors. However, the following function is called by the Javascript in Safari and it throws the errors.

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are "the errors"? TellTheDetails
 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess he's getting java.security.PrivilegedActionException
You must sign your applet to do privileged actions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic