resp.setContentType("text/html"); PrintWriter out = resp.getWriter(); out.println("<HTML>"); out.println("<HEAD><TITLE>Have you seen this before?</TITLE></HEAD>"); out.println("<BODY><H1>Hello, World!</H1><H6>Again.</H6></BODY></HTML>");