my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes insertion jdbc by applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "insertion jdbc by applet" Watch "insertion jdbc by applet" New topic

insertion jdbc by applet

Mohit pundir

Joined: Jun 30, 2007
Posts: 5
hi! friends

i was just woking with the simple jdbc program, the input will be taken from the textbox entry on the applet....and the values must be inserted into the database(ms access).
now, there is no compile-time error, but when i input the values and press update button an error in the cmd is prompted as:

D:\>appletviewer access denied (java.lang.RuntimePermission

please help me out!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
Welcome to JavaRanch.

There are a number of things applet can't do for security reasons, and using the JDBC/ODBC database driver is one of those things. The applet either needs to be signed, or the local security policy altered; both are described in HowCanAnAppletReadFilesOnTheLocalFileSystem.
[ August 03, 2007: Message edited by: Ulf Dittmer ]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32815

I'm going to move this to our applets forum since it is more about applet security than JDBC.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: insertion jdbc by applet
It's not a secret anymore!