When I map servlet with path as like:
<servlet>
<servlet-name>Home1Servlet</servlet-name>
<servlet-class>com.project.servlets.Home1Servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Home1Servlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
And then when I request servlet from browser by any paths like:
http://localhost:8084/project/
http://localhost:8084/project/asd
http://localhost:8084/project/why
http://localhost:8084/project/hell
All these requests return same Home1Servlet content. Why?
How can map servlet only to path "/"?
I am using Apache Tomcat 6.0.26, Java EE 5. Context path is: /project