removed content type set in servlets
This commit is contained in:
parent
c636b0d4b7
commit
6a36c90be5
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue