tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Receiving PUT-messages - calling doPUT
Date Fri, 20 Oct 2006 15:37:20 GMT
Philipp,

> I need to receive data via the PUT-method instead of POST. Unfortunately
> Tomcat by default calls the doGET-method of a given Servlet instead of
> doPUT when it receives data by put-method.

This doesn't sound right. javax.servlet.http.HttpServlet has a method,
doPut, that has the same signature of doGet and doPost. It's default
action is to send an error message to the client.

All you should have to do is implement doPut in your servlet and
everything will work out.

This shouldn't have anything to do with Tomcat.

-chris


Mime
View raw message