Hi,
Can the database client driver be initiated in an applet? The following
works in a Java application, but not in an applet.
String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
Class c = Class.forName(driver);
Database database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);
I also imported org.apache.xindice.client.xmldb.* , and xindcie.jar is in
the same directory. Still no signs of working. The error message shown in
the Java Console was XML:DB Exception occured 1. I guess the error code 1 is
"VENDOR_ERROR."
The html file is shown as followings. What am I missing?
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Sheet Metal Part Design Management System</title>
</head>
<body>
<h1>Sheet Metal Part Design Management System</h1>
<applet code=SheetMetalApplet
codebase="."
archive="SheetMetal.jar, dtdparser115.jar, xmldb.jar,
xindice.jar"
width=695 height=525>
</applet>
</body>
</html>