I'm working on an example with Eclipse and Tomcat 9.0, dynamic web module 4.0, without generating web.xml deployment.
The project directory is as follow:
where reverse.java is a servlet that get the input parameter send it back to the output page. For some reason, after I hit the submit button, the "/reverse" servlet cannot be reached and tomcat prompts HTTP Status 404 - Not Found page. What did I do wrong?
After hitting the submit button on inputForm.jsp page, it got the error:
Type Status Report
Message /reverse
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
URL I called on submit when enter input = "abcd": http://localhost:8080/reverse?input=abcd
What did I do wrong? Thanks.