*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41124
    
  45
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java Applet function connecting database called by Javascript
 
Similar Threads
unable to forward using jsp:forward
HTTP status 500
Problem with ClassLoader
Spring and Ajax
Help!help!Help!