Andreas:

Definitely yes. Check the following snippet of my example web.xml file for details.. 
and we could call the servlet "ServletExample" using each of the following mappings:

http://localhost:8080/ContextName/servlet/hi
http://localhost:8080/ContextName/hello.html
http://localhost:8080/ContextName/any-filename.hello
http://localhost:8080/ContextName/hello/any-filename.any-extension



<servlet>
        <servlet-name>
            hi
        </servlet-name>
        <servlet-class>
            ServletExample
        </servlet-class>
     </servlet>
     <servlet-mapping>
        <servlet-name>
            hi
        </servlet-name>
        <url-pattern>
            /hello.html
        </url-pattern>
     </servlet-mapping>
     <servlet-mapping>
        <servlet-name>
            hi
        </servlet-name>
        <url-pattern>
            *.hello
        </url-pattern>
     </servlet-mapping>
     <servlet-mapping>
        <servlet-name>
            hi
        </servlet-name>
        <url-pattern>
            /hello/*
        </url-pattern>
     </servlet-mapping>

Good Luck ! 

Enjoy,
Anand..




 -----Original Message-----
From:   Andreas Tirok [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, July 10, 2001 7:32 AM
To:     [EMAIL PROTECTED]
Subject:        are there servlet aliases

Hi all,

may I use aliases for servlets?

With Jserv I can use 

servlet.WebBILL_MainMenu.code=beusen.bill.MainMenuServlet

that /servlet/WebBILL_MainMenu 
refer to (/servlet)/beusen/bill/MainMenuServlet

How can I do this with tomcat?

Thx

andy
-- 
-------------------------------
mailto:[EMAIL PROTECTED]
fon: +49 30 549932-37
fax: +49 30 549932-21

Reply via email to