tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Spath <msp...@arcor.de>
Subject Re: Servlet POST results in 404 error
Date Tue, 26 Feb 2002 18:05:19 GMT
did you define the doPost method in your servlet?

if not add:

...
public void doPost(HttpServletRequest request, HttpServletResponse response) {
   doGet(request, response);
}
..

hth,
markus


John Wadkin wrote:

> I'd appreciate a response on this! I've spent time searching the Net but
> haven't turned up anything useful. I don't think I've misconfigured anything
> in my server.xml or web.xml...
> It's just the POST method that doesn't work - no idea why!
> 
> Suggestions please!!
> 
> Thanks,
> 
> John
> 
> -----Original Message-----
> From: John Wadkin [mailto:j.wadkin@hud.ac.uk]
> Sent: 26 February 2002 16:11
> To: Tomcat Users List (E-mail)
> Subject: Servlet POST results in 404 error
> 
> 
> All,
> 
> TomCat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I have a servlet that returns a 404 error whenever a POST is sent. GET works
> fine. The servlet uses sessions - not sure if this has anything to do with
> it. My server.xml just defines a context and a logger. The web.xml has a
> servlet name and mapping, nothing more.
> The servlet was originally written for JServ - could this have something to
> do with it?
> 
> There's nothing in the logs.
> 
> I'm not a servlet programmer so I have no ideas!
> 
> Any suggestions??
> 
> Thanks,
> 
> John
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message