Dear List,
As a new subscriber (and user of Tomcat), please forgive me if this subject
has been raised before.
The company I work for has been supplied with a Java toolkit by an external
contractor that allows us to access our database software through JSP pages.
It uses the normal combination
Thanks, for taking the time to investigate this. It would be nice if
somehow Tomcat could be made to be immune to such application errors.
Jim
-Original Message-
From: Bo Xu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 5:41 PM
To: Tomcat Users List
Subject: Re: HTTP
You could check to see if the ServletRequest is a
HttpServletRequest and do a cast if necessary. However,
I would guess most using GenericServlet probably don't bother
with the HTTP method, as you suggest.
The advantage of using the HttpServlet is that you get
some automated http handling, such
Can anyone help me with this one?
I am running a simple servlet that that has a form that does a post. When
the form is submitted, I get the error
message HTTP method POST is not supported by this URL
Do I need something in my web.xml file? My web.xml file just defines the
servlet and does
If you POST to a servlet which extends HttpServlet and that
servlet doesn't override the doPost() method, the default
doPost() method outputs this error message.
Cheers,
Larry
-Original Message-
From: Endle, Cory [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:29 PM
Holy Smoke...I know this one...you need to have doGet call doPost like this:
public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException
{
doPost(req, res);
}
public void doPost (HttpServletRequest req, HttpServletResponse
Endle, Cory wrote:
Can anyone help me with this one?
I am running a simple servlet that that has a form that does a post. When
the form is submitted, I get the error
message HTTP method POST is not supported by this URL
Do I need something in my web.xml file? My web.xml file just
Larry Isaacs wrote:
If you POST to a servlet which extends HttpServlet and that
servlet doesn't override the doPost() method, the default
doPost() method outputs this error message.
Why? I thought that the default doPost() just calls service(). I didn't have
to override anything in
Chad Alan Prey wrote:
Holy Smoke...I know this one...you need to have doGet call doPost like this:
public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException
{
doPost(req, res);
}
public void doPost (HttpServletRequest
yeah I fat fingered that...take the doPost out of doPost and it works...This
is taken form Core Servlets by Hall.
-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: Tomcat Users List
Subject: Re: HTTP method POST is not
- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 3:18 PM
Subject: Re: HTTP method POST is not supported by this URL
Larry Isaacs wrote:
If you POST to a servlet which extends HttpServlet and that
Hi,
The service() method in HttpServlet checks the request HTTP
method and calls doGet(), doPost(), doHead(), etc. The
default implementations in HttpServlet simply output a
message to let the world know you messed up. For
GenericServlet you override service() and provide your
own checking of
So, doPost calls itself in an endless loop, sending the servlet into
oblivion...
Or until a java.lang.StackOverflowError exception is thrown. :)
Seriously, if a servlet gets a StackOverflowError does that impact Tomcat?
That is, can Tomcat run out of stack space if a loop in a servlet gets out
- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 4:07 PM
Subject: RE: HTTP method POST is not supported by this URL
So, doPost calls itself in an endless loop, sending the servlet into
oblivion...
Or
- Original Message -
From: Bo Xu [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 6:41 PM
Subject: Re: HTTP method POST is not supported by this URL
- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL
yeah I fat fingered that...take the doPost out of doPost and it works...This
is taken form Core Servlets by Hall.
One question - why would you need a HttpServlet? The only time I needed it what when I
nedded HttpResponse object, so I could send redirect. And I didn't override doPost(),
YourServlet extends javax.servlet.http.HttpServlet, and
javax.servlet.http.HttpServlet extends javax.servlet.GenericServlet,
the following is from HttpServlet in jakarta-servletapi-4-src.zip in
www.Apache.org:
...
protected void doPost(HttpServletRequest req,
The service() method in HttpServlet checks the request HTTP
method and calls doGet(), doPost(), doHead(), etc. The
default implementations in HttpServlet simply output a
message to let the world know you messed up. For
GenericServlet you override service() and provide your
own
On Wed, 5 Dec 2001, Nikola Milutinovic wrote:
Date: Wed, 5 Dec 2001 07:19:28 +0100
From: Nikola Milutinovic [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: HTTP method POST is not supported by this URL
YourServlet
I just have to say that the reload has NEVER worked for my webapps, even
though I've marked them as reloadable.
At least not on my 3.x installations.
BTW: It's better to add doPost, doGet and a generic processRequest to your
servlets if you're not sure whether it's POST or GET you're going to
Hi!
I'm just beginning to experiment with Tomcat on Windows NT 4.0 Workstation,
SP6, with PWS and Tomcat 3.2.3...
I am able to run the example servlets and a sample one I created that uses
the jdbc-odbc...
I can also run a servlet that uses the GET method...
My problem is when I try to run a
Hi,
Have you implemented the doPost() method in your servlet or the doGet()?
It needs to be doPost if you're posting from a form.
-Original Message-
From: Gary Fix [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2001 16:34
To: '[EMAIL PROTECTED]'
Subject: Error 405: HTTP method POST
Hi!
Yes, I forgot to add that I implemented the doPost() method in my servlet...
thanks for checking...
-Original Message-
From: Paul Foxton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 8:12 AM
To: 'Tomcat Users List'
Subject: RE: Error 405: HTTP method POST is not
Paul, your reply triggered a thought and subsequent solution!
What I had done was to run the servlet first using the GET method, then
changed it to use the POST method, recompiled, ran the web page and got the
error...
Then I realized Tomcat is holding my old GET method servlet im memory!
So I
phew - glad you figured it out because I was pretty stumped : )
Thats odd though, because tomcat should auto reload your servlet by default
when you've recompiled and then requested it, you shouldn't have to restart
tomcat.
If your servlet is in a directory under
25 matches
Mail list logo