PSQL SDK - Java Server Pages Pvideo Sample
==========================================================

This sample demonstrates the use of JSP and the 
PSQL JDBC 2 driver to access PSQL data.


Requirements:

* PSQL engine

* Web server

* Tomcat Servlet/JavaServer container
  http://jakarta.apache.org/tomcat

* Java 2 SDK 1.4 or higher
  http://java.sun.com



Instructions for use:

1. Install Tomcat on the web server/database engine machine.  
   Tomcat can be obtained from http://jakarta.apache.org/tomcat


2. Copy files in JSP sample to a location under the Tomcat root. 
   For example,

       Windows:    C:\tomcat-5.0.19\webapps\ROOT\pvideojsp   
         Linux:    /usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/pvideojsp 

 
3. Copy PSQL JAR files into the Tomcat common libs directory:
    
   <tomcat_dir>\common\lib
 
   pvjdbc2.jar
   pvjdbc2x.jar
   jpscs.jar
 

4. Ensure that JAVA_HOME environment variable points 
   to J2SDK 1.4 directory.
 
   For example,

       Windows:    c:\j2k1.4.2_04       
	 Linux:    /usr/java/j21.4.2_04  (Linux
                                   

5. Start Tomcat server as described in the Tomcat documentation.
 

6. Create database 'pvideodb' using the supplied PvideoDB folder.


7. Run sample in your web browser:  

       http://127.0.0.1:8080/pvideojsp
 
   JSP uses port 8080 by default, so the web address http://127.0.0.1:8080  
   represents the following JSP root directories on these platforms:  

     Windows:     c:\<tomcat_dir>\webapps\ROOT   
       Linux:     /usr/local/<tomcat_dir>/webapps/ROOT


 
Please post any questions or comments to the PSQL DevTalk Forums at:

   http://www.pervasive.com/devtalk


