I am using Tomcat as WTP in eclipse, and I want to route all Incoming requests to my own Servlet.
When just mapping the Servlet to "/"
, only requests like: "http://localhost:8080/myServletName/anyUrlPattern"
are redirected,
but I want:
"http://localhost:8080/anyUrlPattern"
redirect too.
Tomcat maps the default-servlet to "/"
so I guess something has to be done there..
As commented below, the solution is to set the Context in the server.xml