tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth R. Kress <kkr...@home.com>
Subject Re: web.xml, Apache and url-pattern
Date Sun, 03 Sep 2000 04:13:20 GMT
Graeme,

This is put an end to my torment. Now url-patterns work through Apache.

Can somebody please add this to the Tomcat FAQ? (I submitted it to jGuru).

  Thank you,

     Ken.


On Fri, 01 Sep 2000, you wrote:
> This works for me, for all you guys trying to beat your head off the
> desk :-)
> 
> Assume the webapp is called helloworld in server.xml
> 
> 
> web.xml
> -------
> 
>   <servlet>
>      <servlet-name>Controller</servlet-name>
> 	 <servlet-class>com.xxi.ControlServlet</servlet-class>
>   </servlet>
>   <servlet-mapping>
>       <servlet-name>Controller</servlet-name>
> 	<url-pattern>/info/*</url-pattern>
>   </servlet-mapping>
> 
> 
> tomcat-apache.conf
> ------------------
> 
> Add the following
> 
> <LocationMatch /helloworld/info/* >
> 	SetHandler jserv-servlet
> </LocationMatch>
> 
> 
> regards,
> 
> 
> G.
-- 
Kenneth R. Kress                                kkress@home.com

Mime
View raw message