Run JDBC application fromJava Applet
Posted on 2003-03-17
I have a JDBC file which read data from Oracle and write data into XML files. Now I need to write an applet so the applet will send a string from user to this JDBC application, then this application could start search the Oracle DB. In my applet, the code of calling the JDBC application is as following:
String text = textField.getText();
textArea.append(text + newline);
textArea.setText(new String ("Please wait, the system is generating the XML file"));
cacc = new CatalogConnect(text);
textArea.setText(new String ("Please go to take a look at the the XML file"));
CatalogConnect.java is the JDBC application. textField is where the user enter a string.
In my appletviewer, I got this error:
I run the CatalogConnect.java and this applet on same machine, and the ClassPath and Path are set up. I don't know how to solve this problem. I have write simple applet before, not as complicated as this one. I read something about applet which says that applet could out do I/O and output a file, I wonder what should I do.
Thank you so much.