Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Mark Thomas
Philipp Südmeyer wrote: > The problem is that service() isn't called at all if I send a put-request. > In fact doPut isn't called. PUTs are handled by the default servlet out of the box. Unless you change the readonly init parameter in conf/web.xml to true then PUT and DELETE are rejected. Depend

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
Hi Christopher, First of all: thanks for spending time on my problem! I think you understand the general problem I've got. Yes your right, we did some changes on Tomcat but I just installed a new instance on another computer and tried it out in that environment but it still doesn't work. The hea

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Christopher Schultz
Philipp, > At the moment I just try to get the service-method called which is > the initiater for a Servlet. As far as I know, service() usually > calls the appropriate method which can be doGet() or doPost() but > doPut() as well. That /should/ be the case. You can decompile HttpServlet from the

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
OK - I try to explain my problem again: I want to use a program which sends data to my Tomcat Server to be stored an disk. The problem is that the program provides only PUT. At the moment I just try to get the service-method called which is the initiater for a Servlet. As far as I know, service()

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Christopher Schultz
Philipp, > I overwrote the service-method of HttpServlet. When I call my servlet > using an PUT service() is not called. If I use a normal Webform, it > is called. Woah, what is a Webform? Are you using some kind of application framework such as Struts or Tapestry? If so, then the rules are very

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
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 <[EMAIL PROTECTED]>: Why not this public void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException { doGet(req, resp); } and you implem

RE: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Caldarale, Charles R
> Philipp Südmeyer a écrit : > > Unfortunately Tomcat by default calls the doGET-method > of a given Servlet instead of doPUT when it receives > data by put-method. That's simply not true. Did you code a doPUT() or a doPut() method? (The latter is correct, the former will be ignored.) - Chuc

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Michael Courcy
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 n

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
I overwrote the service-method of HttpServlet. When I call my servlet using an PUT service() is not called. If I use a normal Webform, it is called. I also had a look on the sent packages - They are almost equal, but the one begins with put and the other with post. Due to that fact I am pretty sur

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Christopher Schultz
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

Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
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