I have a servlet "Login.java" that is directed to different url depending on the login domain.
The login jsp is in "Tomcat 5.5\webapps\FYP" folder and the directed pages are in the "Tomcat 5.5\webapps\FYP\WEB-INF\classes" folder.
When i try to login using tomcat as the server, I get the following error. "HTTP method GET is not supported by this URL. description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL)."
The servlet code is as follow:
I have tried changing the "doGet" to "doPost" and service but the error merely change from "GET" to "POST". I have also tried removing the /FYP/ but it doesnt work either.
Can anyone offer me some assistance? Your assistance is very much appreciated.
[BSouther: Added UBB CODE tags] [ January 05, 2007: Message edited by: Ben Souther ]
Sorry the doPost and doGet are replaced by service in the code. I've tried doPost doGet earlier but it doesnt work.
Joined: Mar 22, 2005
The service method shown above does not override the one in HttpServlet, because it has a different signature. Thus it will not be called unless you do so explicitly somewhere. The default service/doGet/doPost methods that are being called just return the "doGet/doPost not allowed" errors that you are seeing. [ January 05, 2007: Message edited by: Ulf Dittmer ]