tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marion McKelvie" <>
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!


-----Original Message-----
From: news []On Behalf Of Bill Barker
Sent: 25 September 2003 08:56
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" <> wrote in message
> I think I may be misunderstanding how to map multiple urls to a servlet.
> 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
> 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
> and /prj/servlet/freddy?  If so, what am I missing or doing wrong?
> Many thanks,
> Marion

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message