Java Reference
In-Depth Information
out.println("</HTML>");
out.fl ush();
}
public void destroy()
{
try
{
link.close();
}
catch(Exception ex)
{
System.out.println(
"Error on closing database!");
ex.printStackTrace();
System.exit(1);
}
}
}
The output from
JDBCServletTest.html
and some example user data are shown
in Fig.
8.12
.
Fig. 8.12
Data entry for submission to a remote database via servlet and JDBC
Search WWH ::
Custom Search