you could.. see this url:

http://java.sun.com/docs/books/tutorial/servlets/servletrunner/webappdd.html

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: servlet-mapping tag


I need to modify my servlets url's so they don't include tomcat's default
'servlet' directory.  For example,

One servlet is in:
     c:\tomcat\webapps\dir1\WEB-INF\classes
therefore the url is:
     http://localhost/dir1/servlet/ServletName

I need the urls to not have the 'servlet' in it
(http://localhost/dir1/ServletName). I was told previously to add a
<servlet-mapping> to my web.xml file. Do I do this in %TOMCAT_HOME%
\conf\web.xml since I want it to apply to all servlets?

I have tried this and can't get it to work. Can somebody give me an
example?

Many Thanks,

Jason E. Brawner

Reply via email to