I made a simple web app called "ServletContextExample" in which I access a servlet with a URL in an HTML page. The URL code was -
<a href = "/ServletContext/listenerTest.do">Click me</a>
Obviously, I get the 404 error
when I click this link. ServletContext
should be changed
to ServletContextExample
. Despite changing the code, rebuilding project, & republishing, restarting tomcat in Eclipse, I still get the 404 error. However, the Servlet can be
"accessed" by entering its url manually. How do I resolve this problem ?
404 error details -
HTTP Status 404 - /ServletContext/listenerTest.do
The requested resource is not available.