I'm using mediator design pattern for my web project. There is a front controller to take care all requests, and base on each request to find suitable servlet. In web.xml, I try this:
<servlet-mapping> <servlet-name>DispatcherServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
And then a request like localhost:8080/project_name/a/b/c/d.jsp I want to get the string
a/b/c/d.jsp but when I use:
request.getServletPath() I get empty string.