Action Statements
The last two servlets are relatively simple.
SQLUpdate has a similar structure to SQLQuery but it reads the update parameter, and executes the command by:
String update = req.getParameter(“update”) ;
try {
Statement stat = conn.createStatement() ;
int rows = stat.executeUpdate(update) ;
. . . generate response . . .
} catch (. . .) { . . .}
SQLClose calls conn.close() then redirects the browser back to the sqlconnect.html page.