Hello Erwan,

> Does somebody can tell me why this code works :
> 
>        PostMethod post = new
> [...]
> And this one not :
> 
>        GetMethod post = new
> 
> I would like to use a POST method but only the GET one works.

So I take it you pasted the examples in the wrong order.
Make sure your Servlet implements doPost as well as doGet.
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServlet.html#doGet(javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServlet.html#doPost(javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)
I usually have a handleRequest method which is called by
both, doGet and doPost.

If that isn't the problem, please post a detailed description
of *what* goes wrong in the POST case. Do you get an error
reply? Is there an exception thrown somewhere?

By the way, we have mailing list guidelines:
http://jakarta.apache.org/site/mail.html
They ask you *not* to cross-post into multiple lists.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to