This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 42958
    
  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 checked out Aspose?
 
subject: Java Applet function connecting database called by Javascript
 
jQuery in Action, 3rd edition