Called in response to a GET request (data encoded in the URL)
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();