tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Jones" <kev...@develop.com>
Subject RE: Renaming of URL
Date Fri, 26 May 2000 12:27:54 GMT
You need something like the following in your web.xml file -

obviously your servlet names will be different.

    <servlet>
        <servlet-name>Simple</servlet-name>
        <servlet-class>ewebjava.Simple</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>Simple</servlet-name>
        <url-pattern>/Simple</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>Simple</servlet-name>
        <url-pattern>*.sml</url-pattern>
    </servlet-mapping>

Kevin Jones
DevelopMentor
www.develop.com

> -----Original Message-----
> From: Alexander Schneider [mailto:info@iSOLUTION.de]
> Sent: 26 May 2000 13:08
> To: tomcat-user@jakarta.apache.org
> Subject: Renaming of URL
>
>
> Hi all,
>
> I guess this is a silly Newbie question but nonetheless I couldnĀ“t
> figure it out myself.
>
> Everything works like a charme with my Tomcat and Apache configuration.
>
> My URL lokks like: http://domain/foo/servlet/myservletname
>
> But I want it to look like: http://domain/foo/myservletname
>
> How can I accomplish that?
>
> Thanks in advance
> Alexander Schneider
> --
> __________________________________
> iSOLUTION - Alexander Schneider
> Rathausallee 10     53757 Sankt Augustin
> T 02241 921 567-0     F 02241 921 567-89
> as@iSOLUTION.de     www.iSOLUTION.de
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message