example.servlet.database
Class InitDatabaseServlet

example.servlet.database.InitDatabaseServlet

public class InitDatabaseServlet

Initializes the database for use with examples packages.

 You need to make sure that the init-parameter jdbc-ref points
 to a correctly configured database pool.
 
 The init-parameter schema points to the SQL schema file used
 by InitDatabaseServlet. If you experience
 SQLExceptions, you may have to adapt the syntax in the file to
 your database.


Constructor Summary
InitDatabaseServlet()
           
 
Method Summary
 void service(example.servlet.database.HttpServletRequest req, example.servlet.database.HttpServletResponse res)
           
 

Constructor Detail

InitDatabaseServlet

public InitDatabaseServlet()
Method Detail

service

public void service(example.servlet.database.HttpServletRequest req,
                    example.servlet.database.HttpServletResponse res)
             throws java.io.IOException