This is a sample application/applet that connects to a PSQL database, takes queries from the user and displays results. It requires connection parameters as inputs.
There are three ways to launch the applet:Copy the 3 PSQL JDBC jars (pvjdbc2.jar, pvjdbc2x.jar and jpscs.jar) into the sample applet folder. Make sure your web server and the PSQL Server are on the same machine and open DBSample.html in your favorite browser.
Copy the 3 PSQL JDBC jars (pvjdbc2.jar, pvjdbc2x.jar and jpscs.jar) into the sample applet folder and do the following from the command-line:
appletviewer DBSample.html
Do the following from the command-line:
set CLASSPATH=<PathToPSQLJDBC>\pvjdbc2.jar;<PathToPSQLJDBC>\pvjdbc2x.jar;<PathToPSQLJDBC>\jpscs.jar;<PathToDBSample>
java DBSample