tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Stupid servlet mapping question.
Date Fri, 21 Feb 2003 08:54:23 GMT
Alternatively, you want:
<url-pattern>>/appbase/dolookup/*</url-pattern>

With Yoav's suggestion, you can't get any PATH_INFO.  With mine you can.
Depends on what you want.  What the Servlet-spec doesn't allow is that you
can't match a path like: "/appbase/dolookup5" with your pattern.

"Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote in message
news:9C5166762F311146951505C6790A9CF831E735@US-VS1.corp.mpi.com...

Howdy,
There are no stupid questions.  In fact, as unfortunate as that may be,
a large number of questions on this list are not nearly as well defined
as yours.

>    <servlet>
>        <servlet-name>dolookup</servlet-name>
>        <servlet-class>boa.dolookup</servlet-class>
>    </servlet>
>.
>.
>    <servlet-mapping>
>    <servlet-name>dolookup</servlet-name>
>    <url-pattern>/appbase/dolookup*</url-pattern>
>    </servlet-mapping>

You want
<url-pattern>/dolookup</url-pattern>

No asterisk, no context name (/appbase in your case).  Url patterns are
relative to the context, so you don't need the context in there.  The
asterisk complicates the mapping unnecessarily.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message