private void printPage(PrintWriter out){
        out.println(
            ServletUtilities.headWithTitle(name) +
            "<body>\n" +
            "<br><br><body>\n" +
            "<h2> <center> Úkol: "+ name +" </center> </h2>\n"
            );
        if (end == null){
            out.println(
                "<form  action='task' method='POST'>" +
                "<input style='visibility: hidden' type='text' name='name_task' value='"+name+"'>" +
                "<br> Nový podúkol: <input type='text' name='new_subtask'> " +
                "<input type='submit' value='LAP'>" +
                "</form>" );
        }
        out.println(
            "<br><br>"+
            "<center>\n"+
            "<table border=1 width=1000px>\n"+
            "<tr> <th> Čas zachycení </th> <th> Název podúkolu</th> </tr>\n"
        );
        
        for (int i = 0; i < subtasks.length; i++)
        {
            out.println(subtasks[i].getRow());
        }
        out.println("</table></center>\n</body></html>");
    }