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
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