• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error 406: error with get

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my web application starts, a HTML login page is initially supposed to show: but what i see is the following error message:

HTTP method Get is not supported by this URL. the URL in question is:

http://localhost:8080/COMISModule/loginservlet

where loginservlet is the name of the servlet to handle my post parameters sent from my loginservlet.html page, which was meant to be displayed initially.

I've not had this problem with other applications ive written, so i wonder what the error is.

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you implemented the doGet method?
 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No i didnt implement the doGet method. it was just the doPost, since i was sending a username and password pair to it.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you hitting this servlet?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic