This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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 The Software Craftsman this week in the Agile 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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
What are "the errors"? TellTheDetails
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.
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Java Applet function connecting database called by Javascript