removed content type set in servlets

This commit is contained in:
Joel Juarez 2019-02-23 22:07:49 +01:00
parent c636b0d4b7
commit 6a36c90be5
2 changed files with 0 additions and 4 deletions

View File

@ -11,8 +11,6 @@ import java.io.PrintWriter;
public class CounterServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
int count = (int)request.getServletContext().getAttribute("counter");

View File

@ -13,8 +13,6 @@ public class UppercaseServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
String inputString = request.getParameter("input").toUpperCase();
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(inputString);