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
SQLException
s, you may have to adapt the syntax in the file to
your database.
Method Summary |
void |
service(example.servlet.database.HttpServletRequest req,
example.servlet.database.HttpServletResponse res)
|
InitDatabaseServlet
public InitDatabaseServlet()
service
public void service(example.servlet.database.HttpServletRequest req,
example.servlet.database.HttpServletResponse res)
throws java.io.IOException