JDBC and Applet on Linux-Apache

Поиск
Список
Период
Сортировка
Искать

JDBC and Applet on Linux-Apache

От:
parisi@alephint.it (Tommaso Parisi)
Дата:
Hi everybody, 
I`ve a problem with an applet that simply connect itself to a postgres DB
and receive the result of a SQL query.\\
Applet on Netscape give me the error:

java.sql.SQLException: No suitable driver

catched for the code Class.forName("postgresql.Driver")

The incredible thing is that an application with the same code run
correctly on the same machine!!
Have anybody some suggestion?

Thanks for the time,
Filippo
filippo@mbr.sigea.it

Follow the code...
P.S.
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
//import postgresql.Driver.*;

public class SQL extends Applet {Label blankLine = new Label(" ");TextField hostPort = new TextField(50);TextField dsn = new TextField(25);TextField sqlStatement = new TextField(50);TextArea results = new TextArea(20,70);Button submitButton = new Button("Submit query.");public void init() { Panel topPanel = new Panel(); Panel bottomPanel = new Panel(); Panel topPanels[] = new Panel[4]; for(int i=0;i
FAQ