out.println("<!DOCTYPE html PUBLIC " +
"\"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" +
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"\n" +
">");
out.println("<html>");
out.println("<head><title>Servlet Output</title></head>");
out.println("<body>");
out.println("<h1>Results</h1>");
out.println("<p>The result is " + result + "</p>");
out.println("</body>");
out.println("</html>");
out.close();