FileDocCategorySizeDatePackage
RequestServlet.javaAPI DocExample617Sat Jan 05 11:47:08 GMT 2002None

RequestServlet2

public class RequestServlet2 extends HttpServlet
Example servlet showing request headers

Fields Summary
Constructors Summary
Methods Summary
public voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

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