Status Code 404
I'm calling that servlet using an html code. The html page comes up but it fails to call the servlet and I get a Status Code 404.
I have this in my post method in the html code:
My html is saved in:
<form action="http://localhost:8080/servlets-exmples/servlet/Servlr" method="post"> to call the servlet.
Servlet is saved:
Can somebody tell me where am I going wrong?
Try this in your html form:
If this doesn't work, write <servlet> and <servlet-mapping> entries in your servlets-examples\WEB-INF\web.xml file. Then, restart the server. And please tell the result.
<form action="http://localhost:8080/servlets-exmples/GreetingServlet" method="post">