aspose file tools*
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
Author

Applets and JDBC

Peter Simard
Ranch Hand

Joined: Oct 31, 2001
Posts: 54
May an applet query a database? If an applet may never access the disk is it not then disallowed for an applet to do this? Especially a web-based applet?


PAS<br />peter@panvox.net<br />2b || !2b
sabbir kazi
Ranch Hand

Joined: Feb 03, 2001
Posts: 62
FYI, all applets are web-based, otherwise they would be called 'Applications'. Anyway, applets can query a database using JDBC in several ways. One of the common practices is :
Applet ----> Servlet ---JDBC--> DB
There are several books and articles explain this mechanism with good examples.
Sabbir
Sreenivasa Majji
Ranch Hand

Joined: Jul 12, 2001
Posts: 224
Originally posted by Peter Simard:
May an applet query a database? If an applet may never access the disk is it not then disallowed for an applet to do this? Especially a web-based applet?

Applets can't access client/user disk. If they are signed, they ask the user permission before accessing any resource. All unsigned applets cable to talk only the server where they are resided.
------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test


Sreenivasa Majji
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applets and JDBC
 
Similar Threads
Not able to get the context Lookup..Help
Clock
Java program protection.
WA #1.....word association
Clock