The Artima Developer Community
Sponsored Link

Java Answers Forum
help: HTTP method POST is not supported by this URL

3 replies on 1 page. Most recent reply: Oct 1, 2002 1:38 AM by Paul

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Paul

Posts: 10
Nickname: tb303
Registered: Aug, 2002

help: HTTP method POST is not supported by this URL Posted: Sep 30, 2002 10:59 AM
Reply to this message Reply
Advertisement
Hi, I'm running tomcat 3.2 with JBuilder and have just got hold of Jason Hunter's com.oreilly.servlet code, I got his upload code to compile but when I run the servlet in an shtml page i get the following

HTTP method POST is not supported by this URL - does anyone know whether this is a tomcat config thing?

Thanks

Paul


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: help: HTTP method POST is not supported by this URL Posted: Sep 30, 2002 1:51 PM
Reply to this message Reply
I think you will need to implement the doPost(0 method of the servlet!

HTH
> Hi, I'm running tomcat 3.2 with JBuilder and have
> just got hold of Jason Hunter's com.oreilly.servlet
> code, I got his upload code to compile but when I run
> the servlet in an shtml page i get the following
>
> HTTP method POST is not supported by this URL - does
> anyone know whether this is a tomcat config thing?
>
> Thanks
>
> Paul

bree vanoss

Posts: 9
Nickname: bree
Registered: Sep, 2002

Re: help: HTTP method POST is not supported by this URL Posted: Sep 30, 2002 3:06 PM
Reply to this message Reply
As indicated above, just implement the doPost method and point it to the doGet method.

   public final void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 
      doGet(request, response);
   }
 

Paul

Posts: 10
Nickname: tb303
Registered: Aug, 2002

Re: help: HTTP method POST is not supported by this URL Posted: Oct 1, 2002 1:38 AM
Reply to this message Reply
Hi, thanks for that - but... I have implemented the doPost() method - im lost....

Flat View: This topic has 3 replies on 1 page
Topic: Using Stringtokenizer to add to DoubleLinkedList Previous Topic   Next Topic Topic: how to wrap a java programme with c++?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use