I had seen the same question in the Tomcat FAQ. The solution is:
1. In web.xml
<servlet-mapping>
.
.
<url-pattern>
/whatever/*
</url-pattern>
</servlet-mapping>
2. Tell Apache to mount /whatever to Tomcat.
Add to your .conf file:
ApJServMount /whatever /ROOT
3.restart both tomcat and apache.
that should do it.
Brian Kejser wrote:
>
> Hi
>
> Is it possible to change the \servlet\ portion of the URL to something else?
>
> For example,
>
> www.domain.com/somepath/servlet/test to
> www.domain.com/somepath/whatever/test
>
> Thanks
--
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927