tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Sabroff <mike.sabr...@cygnusb2b.com>
Subject Re: (newb) Tomcat servlet mapping problem
Date Mon, 23 Jan 2006 22:58:38 GMT
<url-pattern>/simple-servlet</url-pattern>
should be
<url-pattern>/simple-servlet/*</url-pattern>



Georg Sauer-Limbach wrote:
> Darren,
>
> if I look at your original configuration
>
>>     <servlet-mapping>
>>         <servlet-name>SimpleServlet</servlet-name>
>>         <url-pattern>/simple-servlet</url-pattern>
>>     </servlet-mapping>
> ---snip---
>> <Context path="/simple-servlet" docBase="SimpleServlet" 
>> reloadable="true"
>> debug="99">
>
> then, if I am not overlooking something,
> the correct URL to invoke the servlet is
>
> http://localhost/simple-servlet/simple-servlet
>
> because the first "simple-servlet" is the
> Context path where the webapp resides, and
> the second "simple-servlet" is the URL for
> the servlet inside the webapp, like correctly
> configured in the webapp descriptor.
>
> Georg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

-- 
Mike Sabroff
Web Services Developer
mike.sabroff@cygnusb2b.com
920-568-8379


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


Mime
View raw message