Ошибка 404 при отработке html шаблонов
This commit is contained in:
@@ -47,8 +47,9 @@ public class TemplateServlet extends HttpServlet {
|
|||||||
resp.sendError(500);
|
resp.sendError(500);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
resp.sendError(404);
|
||||||
resp.setContentType("text/plain"); //TODO доработать
|
resp.setContentType("text/plain"); //TODO доработать
|
||||||
resp.getWriter().write("not support");
|
resp.getWriter().write("404: not found");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user