mercredi 9 avril 2014

Java méthode - Apache Tomcat état HTTP 405 - HTTP GET n'est pas supportée par cette URL - Stack Overflow


When i run the program at first stage index.jsp page appear with two field of login and password and providing correct username password when i press submit button my Tomcat show such type of error



HTTP Status 405 - HTTP method GET is not supported by this URL



but i also try GET method but same error.


Please some one help me thanx a lot.




You question doesn't contain much information about the login form and the URL handler it gets submitted to. But I guess, after clicking the submit button, the login form is submitted to a Java servlet that doesn't implement doGet() or service() methods. Probably, it requires a POST request. So you can try to change the method attribute of the login form to method="POST" and see if it helps.



When i run the program at first stage index.jsp page appear with two field of login and password and providing correct username password when i press submit button my Tomcat show such type of error



HTTP Status 405 - HTTP method GET is not supported by this URL



but i also try GET method but same error.


Please some one help me thanx a lot.



You question doesn't contain much information about the login form and the URL handler it gets submitted to. But I guess, after clicking the submit button, the login form is submitted to a Java servlet that doesn't implement doGet() or service() methods. Probably, it requires a POST request. So you can try to change the method attribute of the login form to method="POST" and see if it helps.


0 commentaires:

Enregistrer un commentaire