aspose file tools*
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: 39549
    
  27
What are "the errors"? TellTheDetails


Ping & DNS - updated with new look and Ping home screen widget
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
 
Similar Threads
Problem with ClassLoader
HTTP status 500
Spring and Ajax
Help!help!Help!
unable to forward using jsp:forward