> I need the url to not have the 'servlet' in it. Anybody know
> how to do this?
Add a <servlet-mapping> tag to your web.xml file. The DTD for that file
(for JSDK 2.2 / Tomcat 3.2) is available at
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
and in the JSDK 2.2 specification.
> Also, how does tomcat determine the servlet is in the
> WEB-INF\classes directory? Does it alias that as 'servlet'?
Yup.
> If so, where is this done?
I believe that's done in code, not in a configuration file.
-- Bill K.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 7:48 PM
> To: [EMAIL PROTECTED]
> Subject: Changing Tomcats default servlet url?
>
>
> Sorry, if this is a duplicate posting...but I received no
> responses and
> thought I sent it incorrectly.
>
>
> 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 that come with tomcat.
> 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
>