You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jules Yasuna <ju...@bookus-boulet.com> on 2003/10/15 15:49:56 UTC

servlet mapping similarity/overlap ?

Here is a snippet from web.xml ...

<!-- define a servlet -->
  <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>com.xxx.Controller</servlet-class>
  </servlet>

<!-- map the servlet twice -->
  <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/test</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/test/</url-pattern>
  </servlet-mapping>


please notice the two servlet mappings, one to "/test" and the other
to "/test/"

the only difference is the trailing slash, but I wish to have both
uri's mapped to the same servlet

must i add both <servlet-mapping> elements, or is there a better way to do
this?


thanks in advance ... jules

----------------------------
Jules Yasuna
Bookus-Boulet. Inc.
http://www.bookus-boulet.com
(508) 523-7663
----------------------------





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