Guys please help me with this.. when I try to run my servlet on server the above error occured.. As my code is about sending and receiving username and password I didn't use GET method. what should I do? Any help is much appreciated.
Below are my servlet class and index.html files.
Be you.. not someone else.. in everything you do..
I don't think your request is going where you think it's going. That "action=login" is not going to get you there. Do some searching on that form element and what the action attribute should look like.
btw, I assume this code is just an exercise or homework and not something that's ever going to be used in production. If you are really planning on writing your own login security then we need to have a serious talk.
"There is no reason for any individual to have a computer in his home" ~ Ken Olson, Co-founder of DEC, 1977
Your class extends HttpServlet - HttpServlet provides some basic methods plus stubs for all of the HTTP methods: GET, POST,PUT,DELETE. These stubs ALL respond with that "not supported" message. You the programmer must supply an overriding doGet method if you want your servlet to respond to the GET method.