public static PrintWriter initHTML ( ServletResponse response , String title ) throws IOException { response . setContentType ( "text/html" ) ; PrintWriter out = response . getWriter ( ) ; out . println ( "<html>\n" + "<link rel='stylesheet' type='text/css' href='/static/hadoop.css'>\n" + "<title>" + title + "</title>\n" + "<body>\n" + "<h1>" + title + "</h1>\n" ) ; return out ; }
Initial HTML header