tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Südmeyer" <psuedme...@googlemail.com>
Subject Re: Receiving PUT-messages - calling doPUT
Date Fri, 20 Oct 2006 16:50:00 GMT
The problem is that service() isn't called at all if I send a put-request.
In fact doPut isn't called.


2006/10/20, Michael Courcy <michael.courcy@gmail.com>:
>
> Why not this
>
> public  void doPut(HttpServletRequest req, HttpServletResponse resp)
> throws IOException {
>     doGet(req, resp);
> }
>
> and you implement only doGet
>
> Of course it's not consistent if your request need to handle put and get
> request differently.
>
> Mic
>
> Philipp Südmeyer a écrit :
> > Hi,
> >
> > 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. I know that I usually could use
> POST
> > and everything would be fine, but in this special case I can't.
> > So I would really appreciate if anubody explains to me, how I can change
> > Tomcat's behaviour.
> >
> > Thanks for your help!
> >
> > Cheers
> > Philipp
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Philipp Suedmeyer
116 Gloucester Road
South Kensington
SW7 4XH London
United Kingdom

Mobile: +44 79 30 94 18 01

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message