I?m trying to pass some parameters to my servlets doPost method and gets this error 
message:

400 Bad Request

POST is not supported by this URL

I?m using IBM HTTP server 1.3.3 and I`m just trying to print out something on the 
screen with my doPost.

    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    {
        Enumeration e = request.getParameterNames();
        PrintWriter out = response.getWriter ();
        while (e.hasMoreElements()) {
                String name = (String)e.nextElement();
                String value = request.getParameter(name);      //Deprecated
                    out.println(name + " = " + value);
                }
    }

Best Regards
Lars Wiklund

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to