Commit 824df137 by Patryk Czarnik

Kalkulator3 - wspólna implementacja GET i POST

parent c939d4eb
...@@ -67,11 +67,7 @@ public class Kalkulator3 extends HttpServlet { ...@@ -67,11 +67,7 @@ public class Kalkulator3 extends HttpServlet {
} }
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/plain"); doGet(request, response);
response.setCharacterEncoding("utf-8");
PrintWriter out = response.getWriter();
out.print("a kuku");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment