File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes JDBC with applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "JDBC with applets" Watch "JDBC with applets" New topic

JDBC with applets

Rakesh Gadre
Ranch Hand

Joined: Feb 22, 2003
Posts: 47
Hi all,
I am working on an application in which I have to acces the database with Applet.
I am aware of the concept of .java.policy file on the client side.
Now, the problem is, how to send that file on the client system from the web server ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

The policy file is part of the signed jar that contains the applet. The signature factors in both the applet code AND the policy file so that no one can tamper with the policies.
Of course, I strongly discourage 2-tier applet design for reasons I listed here.
3-tier solutions can be done without all the mess and bother of applet signing.
[ May 06, 2003: Message edited by: Tim Holloway ]

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JDBC with applets
It's not a secret anymore!