GeeCON Prague 2014*
The moose likes Applets and the fly likes Java Applet function connecting database called by Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Java Applet function connecting database called by Javascript " Watch "Java Applet function connecting database called by Javascript " New topic
Author

Java Applet function connecting database called by Javascript

niqi li
Greenhorn

Joined: Jul 02, 2009
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
What are "the errors"? TellTheDetails


Ping & DNS - my free Android networking tools app
Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

I guess he's getting java.security.PrivilegedActionException
You must sign your applet to do privileged actions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Applet function connecting database called by Javascript