> but if you have mapped your servlet then it
> gives 404 error. so does it mean it can not be
> used with servlet mapping ?
Not if you map your servlet with wildcards like
<url-pattern>/servlet/testServlet/*</url-pattern>
This also works in
tomcat 4.0.1 without any wildcards. This is allowed according to the 2.3 servlet specification (p.76)
"A servlet container is allowed to make other implicit mappings as long as the explicit mappings take precedence"