response.setContentType("text/plain"); PrintWriter out = response.getWriter(); BufferedReader br = request.getReader(); String buf = br.readLine(); out.print("Rec: "+buf);