You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Graeme Wallace <gr...@xxi.com> on 2000/09/01 06:01:05 UTC

URI Mapping with Apache and Tomcat

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.