I am using Tomcat 5.5 and I need to change the URL for eg: abc.com/A
to abc.com/B. I read about UrlRewrite at tuckey.org as suggested by
this user group. So as I understand I need to do
the following:

1. In my servlet B.war file I need to edit web.xml and add the
following at the top:

       <filter>
          <filter-name>UrlRewriteFilter</filter-name>
          <filter-
class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-
class>
       </filter>
       <filter-mapping>
          <filter-name>UrlRewriteFilter</filter-name>
          <url-pattern>/*</url-pattern>
       </filter-mapping>
2. Redploy

My question is if I put it in B.war in web.xml then how will this work
because abc.com/A will not be routed to B servlet. Since it will not
be routed then how and where will the translation occur?

Is there any performance overhead of using UrlRewrite?

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to