You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Horst G. Reiterer" <ho...@reiterer.net> on 2000/08/03 23:08:21 UTC

how to map context to /servlet ONLY in 3.2b2?

Hi,

accessing a context via /servlet/* used to work with 3.1, no submapping was
required (e.g. /examples/servlet) when using the following:

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

With 3.2 however this doesn't work anymore. Is there any way to make this
kind of mapping work with 3.2?
Thanks in advance for any help!

Regards,

    Horst Reiterer


Re: how to map context to /servlet ONLY in 3.2b2?

Posted by Arion Yu <ar...@stt.com.hk>.
Hi!

Are you mentioning accessing a servlet with http://yourhost/servlet/abc ?
The context should be ROOT instead of example. (although you may change it)
Take a look at $TOMCAT_HOME/conf/server.xml

Arion

"Horst G. Reiterer" wrote:

> Hi,
>
> accessing a context via /servlet/* used to work with 3.1, no submapping was
> required (e.g. /examples/servlet) when using the following:
>
> <servlet-mapping>
>     <servlet-name>
>         invoker
>     </servlet-name>
>     <url-pattern>
>     /
>     </url-pattern>
> </servlet-mapping>
>
> With 3.2 however this doesn't work anymore. Is there any way to make this
> kind of mapping work with 3.2?
> Thanks in advance for any help!
>
> Regards,
>
>     Horst Reiterer

--
[This email and any files transmitted with it are confidential and may contain
information that is legally privileged. They are intended solely for the
addressee(s). Access to this email by anyone else is unauthorized. If you are
not the intended recipient, please delete it and notify the sender by email
immediately; you should not copy or use it for any purpose, nor disclose its
contents to any other person. Thank you.]