File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes applets and jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "applets and jdbc" Watch "applets and jdbc" New topic

applets and jdbc

feroz muhamed
Ranch Hand

Joined: Nov 15, 2003
Posts: 87
can applet directly access Database? when running a security exception rises.
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
Only if the IP address of the database is the same as the URL address from where the applet was loaded. Otherwise, you'll have to sign your applet to allow it to access the network.

SCJP 1.4
Peter Yunguang Qiu
Ranch Hand

Joined: Nov 22, 2003
Posts: 99
How to read / wrtie file using Stream? If the Applet and data file in the same machine, I think it is possible.
george franciscus

Joined: Nov 26, 2003
Posts: 28
Hi feroz,
Please ask questions completely( exact problems).
Anyway, Applet is like normal java class so it can connect to database. But we know applets run at client side. So we have some restrictions about that..
Un signed.
A applet can connect to its downloaded server only.
So in this case if your database server & webserver are same then ur applet can connect to database directly.
if u need more help ask ur question more precisely.
I agree. Here's the link:
subject: applets and jdbc
It's not a secret anymore!