You may want to use redirect in your web server config:
Redirect /dir1 http://hostname/dir1/servlet/servletname
but be aware of the problem with redirecting POSTS: it could not work,
especially if you use absolute pathes instead of relative in your servlets.
hth
*********************************************************************
* Boris Niyazov Ph: 212-854-4094 Fax: 212-854-1749 *
* Systems Manager Email: [EMAIL PROTECTED] *
* Columbia Law School URL: http://www.law.columbia.edu *
*********************************************************************
>
>I'm in the process of switching from JServ to Tomcat. All the servlets
>that were running previously are running now on tomcat but they have
>different urls. I need the url to be the same as it was before I switched
>to tomcat and am having trouble.
>
>My servlet is in:
> c:\tomcat\webapps\dir1\WEB-INF\classes
>I used the same setup as the examples. To reach that servlet you have to
>use the following url:
>http://localhost/dir1/servlet/ServletName
>
>I need the url to not have the 'servlet' in it. Anybody know how to do
>this? Also, how does tomcat determine the servlet is in the
>WEB-INF\classes directory? Does it alias that as 'servlet'? If so, where
>is this done?
>
>Frustrated...
>
>Jason E. Brawner
>Consultant
>Silenus Group, Inc.
>248.735.8077 Ext. 184
>810.252.9944 Cellular
>