tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marion McKelvie" <mar...@streamlet.co.uk>
Subject RE: mapping a servlet to multiple urls
Date Thu, 25 Sep 2003 09:35:03 GMT

Thanks!  The upgrade has done the trick.  Many thanks for your response,
Bill, I was getting very frustrated with the problem!

Marion

-----Original Message-----
From: news [mailto:news@sea.gmane.org]On Behalf Of Bill Barker
Sent: 25 September 2003 08:56
To: tomcat-user@jakarta.apache.org
Subject: Re: mapping a servlet to multiple urls


There was a bug in the Mapper in early versions of Tomcat 5.x.  Try
upgrading to 5.0.12 and see if the bug goes away.

"Marion McKelvie" <marion@streamlet.co.uk> wrote in message
news:MABBKNJJDGNPPKIKJIGCMEFBCJAA.marion@streamlet.co.uk...
>
> I think I may be misunderstanding how to map multiple urls to a servlet.
I
> have a very simple servlet which when I use the following mapping (for
> context prj)
>
> <servlet-mapping>
> <servlet-name>myServlet</servlet-name>
> <url-pattern>/servlet/fred</url-pattern>
> </servlet-mapping>
>
> everything works fine and I can see my servlet output at
/prj/servlet/fred.
>
> If I try
>
> <servlet-mapping>
> <servlet-name>myServlet</servlet-name>
> <url-pattern>/servlet/*</url-pattern>
> </servlet-mapping>
>
> I can only see my servlet output at a url of /prj/servlet/* ie with an
> actual asterisk in the url.  I thought the * acts as a wildcard and I was
> hoping to see my servlet output at urls such as /prj/servlet/fred and
> /prj/servlet/freddy
>
> I am using Tomcat 5 (standalone, not with httpd) as downloaded with Sun's
> web services development kit.
>
> Is it correct to expect that mapping to map the servlet to
/prj/servlet/fred
> and /prj/servlet/freddy?  If so, what am I missing or doing wrong?
>
> Many thanks,
>
> Marion




---------------------------------------------------------------------
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