Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple servlet. Error says "HTTP method GET is not supported by this URL"

 
michael tall
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I enter http://1.1.1.1:8080/TableLoop I see the error message. I included servlet-mapping in web.xml and placed the servlet under default application
Servlet code is given below.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you have implemented doGet so GET should be supported.

Can you post your servlet declaration and url-mappings from your web.xml file?
 
michael tall
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're correct. I made a mistake in web.xml entry. It is corrected now. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic