I am trying to access a very simple servlet called "ServletOklogin" from an html page.
But unable to do this. My webserver is tomcat.
I think it could be two problems
(1) Path incorrect in the html page
(2) Need an web.xml page
The ServletOklogin.class is located at this path:
I have the testServlet.html under the test folder, so thus the path is:
Here is the html file:
What should the path be for the "action" variable in the form??
Press the submit button:</p>
<form method="get" action="http://localhost:8080/test/servlet/ServletOKlogin">
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
I have tried other variations like:
but get the error:
HTTP 404 page cannot be found???
I think the problem is I need to produce an web.xml file?????
And this would be placed in the WEB-INF folder located at:
But I do not know what should be in this file?
The book I am using does not give an example of the web.xml file I should produce????