Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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: 42970
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!