Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"HTTP method POST is not supported by this URL"

 
sean cee
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am new to Servlet.
I just made a simple HTML front end that accept user input and send it across to Servlet using "POST" method.
and when I click on submit button, I get the following error message:
"HTTP method POST is not supported by this URL "
When I use GET method it works fine.
Can anyone tell me what is wrong?
thanks
 
Pragya Prakash
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably, you have not overridden the doPost method.
In other worlds, your servlet doesn't support the POST method.
What u could do, is
Override the doPost method, and call ur doGet method. this should get the servlet working.
 
sean cee
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pragya,
Thanks alot..
I overlooked it..
Thanks again!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic