aspose file tools*
The moose likes Servlets and the fly likes Error 406: error with get Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error 406: error with get" Watch "Error 406: error with get" New topic
Author

Error 406: error with get

Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
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


"Human beings can alter their lives by altering their state of mind" William James
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Have you implemented the doGet method?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
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

Joined: Dec 11, 2004
Posts: 13410

How are you hitting this servlet?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error 406: error with get