Called in response to a GET request (data encoded in the URL) resp.setContentType("text/html"); PrintWriter out = resp.getWriter(); // logic code and main HTML goes here. // Forward to "apisearchresults.jsp"
resp.setContentType("text/html"); PrintWriter out = resp.getWriter(); // logic code and main HTML goes here. // Forward to "apisearchresults.jsp"
Called in response to a POST request (data unencoded on the socket) doGet(req, resp);
doGet(req, resp);
Set up the Servlet // Get a database connection?
// Get a database connection?