Called in response to any request.
String requestType = request.getMethod();
response.setContentType("text/html");
PrintWriter out = response.getWriter();
// BOILERPLATE beginning
out.println("<HTML>");
out.println("<HEAD><TITLE>Servlet Output</TITLE></HEAD>");
out.println("<BODY>");
// to do: logic code and main HTML goes here.
// BOILERPLATE ending
out.println("</BODY>");
out.println("</HTML>");
out.close();