Hi Stuart,

If you use the "build" utility that's bundled with the Tomcat package, you 
can set how you want your servlet called via the file /etc/web.xml. See 
sample value below. I have my servlet file named ServiceControl.class but I 
want it to be accessed as "/service" in the URL.

     <servlet>
         <servlet-name>ServiceControl</servlet-name>
         <servlet-class>ServiceControl</servlet-class>
     </servlet>

     <servlet-mapping>
         <servlet-name>ServiceControl</servlet-name>
         <url-pattern>/service</url-pattern>
     </servlet-mapping>


Lester

At 11:15 AM 9/24/01 +0100, you wrote:
>All
>
>
>Does anybody have information on how to reduce the
>full Java path to a servlet? (deployed with WAR file)
>
>
>......Want this:
>
>http://loopback/myproject/ClickThroughListener
>file path on server would be
>/root/jakarta/webapps/myproject/WEB-INF/classes/com/abcgateway/abc/gateway/MyServlet
>
>
>
>
>.....Don't want this:
>
>http://loopback/abcgateway/com.mycompany.abc.gateway.MyServlet
>
>or this:
>
>http://loopback/servlet/com.mycompany.abc.gateway.MyServlet
>file path on server is
>/root/jakarta/webapps/ROOT/WEB-INF/classes/com/abcgateway/abc/gateway/MyServlet
>
>
>... Stuart
>
>
>  This message is for the designated recipient only and
>may contain privileged or confidential information. If
>you have received it in error, please notify the
>sender immediately and delete the original. Any other
>use of the email by you is prohibited.
>
>
>
>____________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>or your free @yahoo.ie address at http://mail.yahoo.ie

Reply via email to