title: URL pattern issue with Struts 1.x and Struts 2.x
body: <p>One of my project is running on Struts 1.x and We are trying to integrate few of URL's pattern on struts 2.x. Few URL also end with <code>Abc.do</code> .</p>
  
  <p>Currently <code>web.xml</code> looks like:</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet&gt;
          &lt;servlet-name&gt;action&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.apache.struts.action.ActionServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
            &lt;param-name&gt;config&lt;/param-name&gt;
            &lt;param-value&gt;/WEB-INF/struts-config.xml&lt;/param-value&gt;
          &lt;/init-param&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;action&lt;/servlet-name&gt;
        &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>And above pattern working fine as defined in <code>web.xml</code>.</p>
  
  <p>Now we have added in <code>web.xml</code> to support Struts 2.x parallel.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt; 
  &lt;/filter&gt;
  
  &lt;filter-mapping&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;url-pattern&gt;*.action&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>After added above info in <code>web.xml</code> , those URL pattern ends with <code>.action</code> they are also working fine using struts 2.x.</p>
  
  <p>But when we want to add few specific URL pattern which also ends with <code>.do</code> mapped to Struts 2.x as below.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;filter-mapping&gt;
           &lt;filter-name&gt;struts2&lt;/filter-name&gt;
           &lt;url-pattern&gt;/Hello.do&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>We want all request which starts with <code>Hello*.do</code> should mapped on struts 2.x , but right now this is not happening.</p>
  
  <p>So is am something missing here in <code>web.xml</code> or Altogether it is not possible.</p>
  
  <p>Is there any way apart we can solve this issue?</p>